Module: HelloBlock::Endpoints
- Included in:
- HelloBlock, Address, Faucet, Query, Request
- Defined in:
- lib/helloblock/api_interface/endpoints.rb
Constant Summary collapse
- ENDPOINTS =
{ address: '/addresses/', addresses_transactions: '/addresses/transactions', unspents: '/unspents', transaction: '/transactions/', latest: 'latest', wallet: '/wallet', block: '/blocks/', faucet: '/faucet', withdraw: '/faucet/withdrawal' }
Instance Method Summary collapse
Instance Method Details
#base_url ⇒ Object
15 16 17 |
# File 'lib/helloblock/api_interface/endpoints.rb', line 15 def base_url "http://#{network}.helloblock.io" end |
#version_path ⇒ Object
19 20 21 |
# File 'lib/helloblock/api_interface/endpoints.rb', line 19 def version_path "/#{version}" end |