Module: HelloBlock::Endpoints
- 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', rpc: '/getrawtransaction' }
Instance Method Summary collapse
Instance Method Details
#base_url ⇒ Object
16 17 18 |
# File 'lib/helloblock/api_interface/endpoints.rb', line 16 def base_url "http://#{network}.helloblock.io" end |
#version_path ⇒ Object
20 21 22 |
# File 'lib/helloblock/api_interface/endpoints.rb', line 20 def version_path "/#{version}" end |