I am getting the following error while trying RPC call from ruby. bitcoind
server is running. I am using bitcoin-ruby
library .
Code Tried in irb to test:
require 'bitcoin'
=> true
irb(main):002:0> txid= "611b40973fe68cc42b70ae5af365a449af458d76086415c6fa6c45364c36278e"
=> "611b40973fe68cc42b70ae5af365a449af458d76086415c6fa6c45364c36278e"
irb(main):003:0> rtx= bitcoinRPC('getrawtransaction',[txid])
Error :
NoMethodError: undefined method `bitcoinRPC' for main:Object
from (irb):3
from /usr/bin/irb:11:in `<main>'
Any suggetion will be highly appreciated.
Thanks in advance,
R