CoinRPC
A simple client for Bitcoin Core style RPC. Supports batch requests.
Installation
Add this line to your application's Gemfile:
gem "coinrpc"
And then execute:
$ bundle
Or install it yourself as:
$ gem install coinrpc
Usage
require "coinrpc"
client = CoinRPC::Client.new("http://username:password@hostname:port")
puts client.getblockchaininfo
Responses will contain coin values as BigDecimals:
puts client.getrawtransaction(txid)["vout"].first["value"].to_s("F")
Contributing
- Fork it ( https://github.com/doersf/coinrpc/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request