[英]How do I connect to an Ethereum testrpc Blockchain from Rails?
I have installed testrpc and able to run the demo example (MetaCoin) of trufffle. 我已经安装了testrpc并能够运行trufffle的演示示例(MetaCoin)。 I want to know if there is a way to use truffle/testrpc in a Ruby on Rails application.
我想知道在Ruby on Rails应用程序中是否可以使用松露/ testrpc。 Can somebody please help me with these questions.
有人可以帮我解决这些问题吗?
How to connect to testrpc blockchain running locally on a windows machine from a Rails application?
如何从Rails应用程序连接到Windows计算机上本地运行的testrpc区块链?
And 和
If you want to use any Ethereum node with ruby you can use ethereum.rb . 如果您想将任何以太坊节点与ruby一起使用, 则可以使用ethereum.rb 。
Keep in mind that testrpc is a test node, so it only makes sense to use it when writing tests. 请记住,testrpc是一个测试节点,因此只有在编写测试时才使用它。
我不了解Rails,但对于基于REST的调用,Blockapps具有REST API与以太坊区块链(Strato)进行交互...也许您可以尝试一下
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.