Skip to content

JosephClarkClayton/ruby-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlockCypher Ruby Client

Simple Ruby client for the BlockCypher API.

Setup

Simply using rubygems:

gem install blockcypher-ruby

For Rails apps

Add this line to your application's Gemfile:

gem 'blockcypher-ruby', '~> 0.2.6'

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.6.gem

Initializing a client

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

BlockCypher's documentation

For more information check the API docs at:

https://www.blockcypher.com/dev/bitcoin

Development

  • Copy spec/config.yml.sample to spec/config.yml and put your test API token
  • rspec spec

Contributors

Contributions from CoinHako and meXBT

About

Ruby SDK for BlockCypher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%