GET /get_best_trade/:coin0/:coin1/:swaptype/:amount
path
path
path
path
query
query
GET /get_block/:height
path
query
GET /get_block_status/:height
path
GET /get_blocks/:start_height/:end_height
path
path
query
GET /get_blocks_transactions/:start_height/:end_height
path
path
query
query
query
query
GET /get_coin/:coinid
path
query
query
GET /get_coin_holders/:coinid
Method description
Returns accounts holding a positive balance of the requested coin.
Uses the shared account warmup snapshot, refreshed every 720 blocks. The response height is the actual snapshot height, not necessarily the latest blockchain height.
Holders are sorted by balance descending, then by address ascending. The zero address is included when it has a positive balance.
page defaults to 1.
per_page defaults to 0 (all holders).
Maximum per_page is 10000.
For paginated requests, page multiplied by per_page must not exceed 100000.
Each holder contains address and value. Values are decimal strings. Count is the number of holders returned on the requested page.
path
query
query
GET /get_coin_ids
query
GET /get_coin_symbols
query
GET /get_coins
query
GET /get_duration
query
query
GET /get_frozzen/:address
path
query
query
query
query
query
query
GET /get_height_by_time
query
query
query
GET /get_init_height
GET /get_miss
query
query
GET /get_node/:pubkey
path
query
query
query
GET /get_nonce/:address
path
GET /get_order/:orderid
path
query
GET /get_orders/:owner
path
query
query
query
query
GET /get_pool/:coin0/:coin1
path
path
query
query
GET /get_pool_provider_volume/:coin0/:coin1/:provider
path
path
path
query
GET /get_pool_providers/:coin0/:coin1
Method description
Returns the current distribution of pool liquidity among its ultimate owners.
Includes free LP balances, frozen LP tokens, LP tokens held in limit orders and indirect ownership through reserves of other liquidity pools.
The response height identifies the committed blockchain state used for calculation. Providers are sorted by total liquidity descending, then by address ascending.
Alternative GET request:
/get_pool_providers?coin0=0&coin1=1993&page=1&limit=100
Response fields:
height - blockchain state height.
result.pool_id - pool ID.
result.coin0, coin1 - requested coin IDs.
result.liquidity_coin_id - LP token ID.
result.liquidity_coin_symbol - LP token symbol.
result.reserve0, reserve1 - pool reserves in requested coin order.
result.total_liquidity - total LP token supply.
result.allocated_liquidity - total liquidity allocated to providers.
result.locked_liquidity - permanently locked liquidity attributed to the zero address, including indirect ownership.
result.rounding_liquidity - residual from integer rounding.
result.total_providers - total number of providers before pagination.
result.page, limit, count, has_more - pagination information.
result.providers - array of liquidity providers.
Provider fields:
address - owner address.
freefloat - freely available LP tokens.
frozen - frozen LP tokens.
orders - LP tokens held in limit orders.
direct_liquidity - sum of freefloat, frozen and orders.
indirect_liquidity - LP ownership through other pools.
total_liquidity - direct plus indirect liquidity.
share - fraction of total LP supply, from 0 to 1.
amount0, amount1 - corresponding amounts of pool reserves.
Amounts and shares are decimal strings.
Liquidity conservation:
total_liquidity = allocated_liquidity + locked_liquidity + rounding_liquidity.
HTTP 400 - invalid parameters.
HTTP 404 - pool not found.
HTTP 503 - current ownership cannot be calculated safely or startup warmup is incomplete.