module Blockcypher::Client::Api

Public Instance Methods

address(add) click to toggle source
# File lib/blockcypher/client/api.rb, line 13
def address(add)
  new_call.get("/addrs/#{add}")
end
blocks(block_hash) click to toggle source
# File lib/blockcypher/client/api.rb, line 9
def blocks(block_hash)
  new_call.get("/blocks/#{block_hash}")
end
chain() click to toggle source
# File lib/blockcypher/client/api.rb, line 21
def chain
  new_call.get
end
create_address() click to toggle source
# File lib/blockcypher/client/api.rb, line 17
def create_address
  new_call.post('/addrs')
end
transactions(txs_hash) click to toggle source
# File lib/blockcypher/client/api.rb, line 4
def transactions(txs_hash)
  new_call.get("/txs/#{txs_hash}")
end
Also aliased as: txs
txs(txs_hash)
Alias for: transactions

Private Instance Methods

new_call() click to toggle source
# File lib/blockcypher/client/api.rb, line 27
def new_call
  Call.new(config)
end