Simple Ruby client for the BlockCypher API.
Simply using rubygems:
gem install blockcypher-ruby
Add this line to your application's Gemfile:
gem 'blockcypher-ruby', '~> 0.2.7'
And then execute:
$ bundle install
Or install it yourself as:
$ git clone https://github.com/blockcypher/ruby-client.git
$ cd ruby-client
$ bundle
$ gem build blockcypher-ruby.gemspec
$ gem install blockcypher-ruby-0.2.7.gem
If you want to use BTC on the main net, which is normally what you want to do, it's as simple as:
block_cypher = BlockCypher::Api.new
For more information check the API docs at:
https://www.blockcypher.com/dev/bitcoin
- Copy
spec/config.yml.sample
tospec/config.yml
and put your test API token rspec spec