No commit activity in last 3 years
No release in over 3 years
Basic Ruby wrapper to interact with the Blockcypher API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0

Runtime

 Project Readme

Blockcypher::Client

Allow usage of the Blockcypher API through Ruby

Installation

$ gem install blockcypher-client

Testing

$ rake

Tests in integration folder usually make use of mocked response files to simulate remote API

Usage

# Creates new default client (coin = btc, chain = main)
client = Blockcypher::Client.new 
json = client.chain                    # Return JSON info for the current chain
json['name']                           # => 'BTC.main'

litecoin = Blockcypher::Client.new(coin: :ltc)
json = litecoin.transactions('4e6b95993b770e7d1084af128f971d6b44c5e32cbf3acc35eee84f69c6b4f9ea')

# Client for bitcoin on the test3 blockchain
bitcoin_test = Blockcypher::Client.new(chain: :test3)

# Client with API token
client = Blockcypher::Client.new(token: 'my_token')