Module: HelloBlock::Endpoints

Included in:
HelloBlock, Address, Faucet, Query, RPC, 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',
  rpc:                    '/getrawtransaction'
}

Instance Method Summary collapse

Instance Method Details

#base_urlObject



16
17
18
# File 'lib/helloblock/api_interface/endpoints.rb', line 16

def base_url
  "http://#{network}.helloblock.io"
end

#version_pathObject



20
21
22
# File 'lib/helloblock/api_interface/endpoints.rb', line 20

def version_path
  "/#{version}"
end