Module: Blockcypher::Client::Api

Included in:
Blockcypher::Client
Defined in:
lib/blockcypher/client/api.rb

Defined Under Namespace

Classes: Call

Instance Method Summary collapse

Instance Method Details

#address(add) ⇒ Object



13
14
15
# File 'lib/blockcypher/client/api.rb', line 13

def address(add)
  new_call.get("/addrs/#{add}")
end

#blocks(block_hash) ⇒ Object



9
10
11
# File 'lib/blockcypher/client/api.rb', line 9

def blocks(block_hash)
  new_call.get("/blocks/#{block_hash}")
end

#chainObject



21
22
23
# File 'lib/blockcypher/client/api.rb', line 21

def chain
  new_call.get
end

#create_addressObject



17
18
19
# File 'lib/blockcypher/client/api.rb', line 17

def create_address
  new_call.post('/addrs')
end

#transactions(txs_hash) ⇒ Object Also known as: txs



4
5
6
# File 'lib/blockcypher/client/api.rb', line 4

def transactions(txs_hash)
  new_call.get("/txs/#{txs_hash}")
end