class Blockcypher::Client

Constants

VERSION

Attributes

config[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/blockcypher/client.rb, line 13
def initialize(options = {})
  chain = options[:chain] || :main
  coin = options[:coin] || :btc
  @config = Config.new(
    URI("https://api.blockcypher.com/v1/#{coin}/#{chain}"), 
    options[:token]
  )
end