Download OpenAPI specification:Download
Address returns coins list, balance and transaction count of an address.
address required | string |
height | integer <uint64> |
delegated | boolean Default: "false" |
{- "balance": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "delegated": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string",
- "delegate_bip_value": "string"
}
], - "total": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "transaction_count": "string",
- "bip_value": "string",
- "locked_stake_until_block": "string",
- "multisig": {
- "threshold": "string",
- "weights": [
- "string"
], - "addresses": [
- "string"
]
}
}
Addresses returns list of addresses.
addresses required | Array of strings |
height | integer <uint64> |
delegated | boolean Default: "false" |
{- "addresses": {
- "property1": {
- "balance": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "delegated": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string",
- "delegate_bip_value": "string"
}
], - "total": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "transaction_count": "string",
- "bip_value": "string",
- "locked_stake_until_block": "string",
- "multisig": {
- "threshold": "string",
- "weights": [
- "string"
], - "addresses": [
- "string"
]
}
}, - "property2": {
- "balance": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "delegated": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string",
- "delegate_bip_value": "string"
}
], - "total": [
- {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "transaction_count": "string",
- "bip_value": "string",
- "locked_stake_until_block": "string",
- "multisig": {
- "threshold": "string",
- "weights": [
- "string"
], - "addresses": [
- "string"
]
}
}
}
}
Frozen returns frozen balance. Deprecated: Use FrozenAll instead.
address required | string |
coin_id | integer <uint64> |
height | integer <uint64> |
{- "frozen": [
- {
- "height": "string",
- "address": "string",
- "candidate_key": "string",
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "move_to_candidate_key": "string"
}
]
}
FrozenAll returns frozen balance.
start_height | integer <uint64> |
end_height | integer <uint64> |
height | integer <uint64> |
addresses | Array of strings |
coin_ids | Array of strings <uint64> |
{- "frozen": [
- {
- "height": "string",
- "address": "string",
- "candidate_key": "string",
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "move_to_candidate_key": "string"
}
]
}
WaitList returns the list of address stakes in waitlist.
address required | string |
public_key | string |
height | integer <uint64> |
{- "list": [
- {
- "public_key": "string",
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string"
}
]
}
WaitLists returns the list addresses and stakes in waitlist.
height | integer <uint64> |
{- "addresses": [
- {
- "address": "string",
- "list": [
- {
- "public_key": "string",
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string"
}
]
}
]
}
BestTrade returns optimal exchange route.
sell_coin required | string <uint64> |
buy_coin required | string <uint64> |
type required | string Enum: "input" "output" |
amount required | string |
height | integer <uint64> |
max_depth | integer <int32> Default: "4" |
{- "path": [
- "string"
], - "result": "string"
}
EstimateCoinBuy returns estimate of buy coin transaction.
coin_id_to_buy | integer <uint64> |
coin_to_buy | string |
coin_id_to_sell | integer <uint64> |
coin_to_sell | string |
value_to_buy required | string |
height | integer <uint64> |
coin_id_commission | integer <uint64> |
coin_commission | string |
swap_from | string Default: "optimal" Enum: "optimal" "bancor" "pool" |
route | Array of strings <uint64> |
{- "will_pay": "string",
- "commission": "string",
- "swap_from": "optimal"
}
EstimateCoinSell returns estimate of sell coin transaction.
coin_id_to_buy | integer <uint64> |
coin_to_buy | string |
coin_id_to_sell | integer <uint64> |
coin_to_sell | string |
value_to_sell required | string |
height | integer <uint64> |
coin_id_commission | integer <uint64> |
coin_commission | string |
swap_from | string Default: "optimal" Enum: "optimal" "bancor" "pool" |
route | Array of strings <uint64> |
{- "will_get": "string",
- "commission": "string",
- "swap_from": "optimal"
}
EstimateCoinSellAll returns estimate of sell all coin transaction.
coin_id_to_buy | integer <uint64> |
coin_to_buy | string |
coin_id_to_sell | integer <uint64> |
coin_to_sell | string |
value_to_sell required | string |
gas_price | integer <uint64> Default: "1" |
height | integer <uint64> |
swap_from | string Default: "optimal" Enum: "optimal" "bancor" "pool" |
route | Array of strings <uint64> |
{- "will_get": "string",
- "swap_from": "optimal"
}
PriceCommission returns commissions.
height | integer <uint64> |
{- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "payload_byte": "string",
- "send": "string",
- "buy_bancor": "string",
- "sell_bancor": "string",
- "sell_all_bancor": "string",
- "buy_pool_base": "string",
- "buy_pool_delta": "string",
- "sell_pool_base": "string",
- "sell_pool_delta": "string",
- "sell_all_pool_base": "string",
- "sell_all_pool_delta": "string",
- "create_ticker3": "string",
- "create_ticker4": "string",
- "create_ticker5": "string",
- "create_ticker6": "string",
- "create_ticker7_10": "string",
- "create_coin": "string",
- "create_token": "string",
- "recreate_coin": "string",
- "recreate_token": "string",
- "declare_candidacy": "string",
- "delegate": "string",
- "unbond": "string",
- "redeem_check": "string",
- "set_candidate_on": "string",
- "set_candidate_off": "string",
- "create_multisig": "string",
- "multisend_base": "string",
- "multisend_delta": "string",
- "edit_candidate": "string",
- "set_halt_block": "string",
- "edit_ticker_owner": "string",
- "edit_multisig": "string",
- "edit_candidate_public_key": "string",
- "create_swap_pool": "string",
- "add_liquidity": "string",
- "remove_liquidity": "string",
- "edit_candidate_commission": "string",
- "mint_token": "string",
- "burn_token": "string",
- "vote_commission": "string",
- "vote_update": "string",
- "failed_tx": "string",
- "add_limit_order": "string",
- "remove_limit_order": "string",
- "move_stake": "string",
- "lock_stake": "string",
- "lock": "string"
}
Block returns block data at given height.
height required | string <uint64> |
fields | Array of strings Items Enum: "transactions" "missed" "block_reward" "size" "proposer" "validators" "evidence" |
failed_txs | boolean Default: "false" |
events | boolean Default: "false" |
{- "hash": "string",
- "height": "string",
- "time": "string",
- "transaction_count": "string",
- "transactions": [
- {
- "hash": "string",
- "raw_tx": "string",
- "height": "string",
- "index": "string",
- "from": "string",
- "nonce": "string",
- "gas": "string",
- "gas_price": "string",
- "gas_coin": {
- "id": "0",
- "symbol": "BIP"
}, - "type_hex": "string",
- "type": "string",
- "data": {
- "@type": "string",
- "property1": null,
- "property2": null
}, - "payload": "string",
- "service_data": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "code": "string",
- "log": "string"
}
], - "block_reward": "string",
- "locked_stake_rewards": "string",
- "size": "string",
- "proposer": "string",
- "validators": [
- {
- "public_key": "string",
- "signed": true
}
], - "evidence": {
- "evidence": [
- { }
]
}, - "missed": [
- "string"
], - "events": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
Blocks returns blocks at given interval.
from_height required | integer <uint64> |
to_height required | integer <uint64> |
fields | Array of strings Items Enum: "transactions" "missed" "block_reward" "size" "proposer" "validators" "evidence" |
failed_txs | boolean Default: "false" |
events | boolean Default: "false" |
{- "blocks": [
- {
- "hash": "string",
- "height": "string",
- "time": "string",
- "transaction_count": "string",
- "transactions": [
- {
- "hash": "string",
- "raw_tx": "string",
- "height": "string",
- "index": "string",
- "from": "string",
- "nonce": "string",
- "gas": "string",
- "gas_price": "string",
- "gas_coin": {
- "id": "0",
- "symbol": "BIP"
}, - "type_hex": "string",
- "type": "string",
- "data": {
- "@type": "string",
- "property1": null,
- "property2": null
}, - "payload": "string",
- "service_data": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "code": "string",
- "log": "string"
}
], - "block_reward": "string",
- "locked_stake_rewards": "string",
- "size": "string",
- "proposer": "string",
- "validators": [
- {
- "public_key": "string",
- "signed": true
}
], - "evidence": {
- "evidence": [
- { }
]
}, - "missed": [
- "string"
], - "events": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
]
}
{- "genesis_time": "string",
- "chain_id": "string",
- "initial_height": "string",
- "consensus_params": {
- "block": {
- "max_bytes": "string",
- "max_gas": "string",
- "time_iota_ms": "string"
}, - "evidence": {
- "max_age_num_blocks": "string",
- "max_age_duration": "string"
}, - "validator": {
- "pub_key_types": [
- "string"
]
}, - "version": {
- "app_version": "string"
}
}, - "app_hash": "string",
- "app_state": {
- "version": "string",
- "note": "string",
- "validators": [
- {
- "total_bip_stake": "string",
- "public_key": "string",
- "accum_reward": "string",
- "absent_times": "string"
}
], - "candidates": [
- {
- "id": "string",
- "reward_address": "string",
- "owner_address": "string",
- "control_address": "string",
- "total_bip_stake": "string",
- "public_key": "string",
- "commission": "string",
- "stakes": [
- {
- "owner": "string",
- "coin": "string",
- "value": "string",
- "bip_value": "string"
}
], - "updates": [
- {
- "owner": "string",
- "coin": "string",
- "value": "string",
- "bip_value": "string"
}
], - "status": "string",
- "jailed_until": "string",
- "last_edit_commission_height": "string"
}
], - "deleted_candidates": [
- {
- "id": "string",
- "public_key": "string"
}
], - "coins": [
- {
- "id": "string",
- "name": "string",
- "symbol": "string",
- "volume": "string",
- "crr": "string",
- "reserve": "string",
- "max_supply": "string",
- "version": "string",
- "owner_address": "string",
- "mintable": true,
- "burnable": true
}
], - "frozen_funds": [
- {
- "height": "string",
- "address": "string",
- "candidate_key": "string",
- "candidate_id": "string",
- "coin": "string",
- "value": "string",
- "to_candidate_key": "string"
}
], - "block_list_candidates": [
- "string"
], - "waitlist": [
- {
- "candidate_id": "string",
- "owner": "string",
- "coin": "string",
- "value": "string"
}
], - "accounts": [
- {
- "address": "string",
- "balance": [
- {
- "coin": "string",
- "value": "string"
}
], - "nonce": "string",
- "multisig_data": {
- "threshold": "string",
- "weights": [
- "string"
], - "addresses": [
- "string"
]
}, - "lock_stake_until_block": "string"
}
], - "halt_blocks": [
- {
- "height": "string",
- "candidate_key": "string"
}
], - "pools": [
- {
- "coin0": "string",
- "coin1": "string",
- "reserve0": "string",
- "reserve1": "string",
- "id": "string",
- "orders": [
- {
- "is_sale": true,
- "volume0": "string",
- "volume1": "string",
- "id": "string",
- "owner": "string",
- "height": "string"
}
]
}
], - "next_order_id": "string",
- "commission": {
- "coin": "string",
- "payload_byte": "string",
- "send": "string",
- "buy_bancor": "string",
- "sell_bancor": "string",
- "sell_all_bancor": "string",
- "buy_pool_base": "string",
- "buy_pool_delta": "string",
- "sell_pool_base": "string",
- "sell_pool_delta": "string",
- "sell_all_pool_base": "string",
- "sell_all_pool_delta": "string",
- "create_ticker3": "string",
- "create_ticker4": "string",
- "create_ticker5": "string",
- "create_ticker6": "string",
- "create_ticker7_10": "string",
- "create_coin": "string",
- "create_token": "string",
- "recreate_coin": "string",
- "recreate_token": "string",
- "declare_candidacy": "string",
- "delegate": "string",
- "unbond": "string",
- "redeem_check": "string",
- "set_candidate_on": "string",
- "set_candidate_off": "string",
- "create_multisig": "string",
- "multisend_base": "string",
- "multisend_delta": "string",
- "edit_candidate": "string",
- "set_halt_block": "string",
- "edit_ticker_owner": "string",
- "edit_multisig": "string",
- "edit_candidate_public_key": "string",
- "create_swap_pool": "string",
- "add_liquidity": "string",
- "remove_liquidity": "string",
- "edit_candidate_commission": "string",
- "mint_token": "string",
- "burn_token": "string",
- "vote_commission": "string",
- "vote_update": "string",
- "failed_tx": "string",
- "add_limit_order": "string",
- "remove_limit_order": "string",
- "move_stake": "string",
- "lock_stake": "string",
- "lock": "string"
}, - "commission_votes": [
- {
- "height": "string",
- "votes": [
- "string"
], - "commission": {
- "coin": "string",
- "payload_byte": "string",
- "send": "string",
- "buy_bancor": "string",
- "sell_bancor": "string",
- "sell_all_bancor": "string",
- "buy_pool_base": "string",
- "buy_pool_delta": "string",
- "sell_pool_base": "string",
- "sell_pool_delta": "string",
- "sell_all_pool_base": "string",
- "sell_all_pool_delta": "string",
- "create_ticker3": "string",
- "create_ticker4": "string",
- "create_ticker5": "string",
- "create_ticker6": "string",
- "create_ticker7_10": "string",
- "create_coin": "string",
- "create_token": "string",
- "recreate_coin": "string",
- "recreate_token": "string",
- "declare_candidacy": "string",
- "delegate": "string",
- "unbond": "string",
- "redeem_check": "string",
- "set_candidate_on": "string",
- "set_candidate_off": "string",
- "create_multisig": "string",
- "multisend_base": "string",
- "multisend_delta": "string",
- "edit_candidate": "string",
- "set_halt_block": "string",
- "edit_ticker_owner": "string",
- "edit_multisig": "string",
- "edit_candidate_public_key": "string",
- "create_swap_pool": "string",
- "add_liquidity": "string",
- "remove_liquidity": "string",
- "edit_candidate_commission": "string",
- "mint_token": "string",
- "burn_token": "string",
- "vote_commission": "string",
- "vote_update": "string",
- "failed_tx": "string",
- "add_limit_order": "string",
- "remove_limit_order": "string",
- "move_stake": "string",
- "lock_stake": "string",
- "lock": "string"
}
}
], - "update_votes": [
- {
- "height": "string",
- "votes": [
- "string"
], - "version": "string"
}
], - "used_checks": [
- "string"
], - "max_gas": "string",
- "total_slashed": "string",
- "versions": [
- {
- "height": "string",
- "name": "string"
}
], - "emission": "string",
- "prev_reward": {
- "time": "string",
- "amount_bip": "string",
- "amount_usdt": "string",
- "off": true,
- "reward": "string"
}
}
}
{- "listening": true,
- "listeners": [
- "string"
], - "count_peers": "string",
- "peers": [
- {
- "latest_block_height": 0,
- "node_info": {
- "protocol_version": {
- "p2p": "string",
- "block": "string",
- "app": "string"
}, - "id": "string",
- "listen_addr": "string",
- "network": "string",
- "version": "string",
- "channels": "string",
- "moniker": "string",
- "other": {
- "tx_index": "string",
- "rpc_address": "string"
}
}, - "is_outbound": true,
- "connection_status": {
- "duration": "string",
- "SendMonitor": {
- "active": true,
- "start": "string",
- "duration": "string",
- "idle": "string",
- "bytes": "string",
- "samples": "string",
- "inst_rate": "string",
- "cur_rate": "string",
- "avg_rate": "string",
- "peak_rate": "string",
- "bytes_rem": "string",
- "time_rem": "string",
- "progress": "string"
}, - "RecvMonitor": {
- "active": true,
- "start": "string",
- "duration": "string",
- "idle": "string",
- "bytes": "string",
- "samples": "string",
- "inst_rate": "string",
- "cur_rate": "string",
- "avg_rate": "string",
- "peak_rate": "string",
- "bytes_rem": "string",
- "time_rem": "string",
- "progress": "string"
}, - "channels": [
- {
- "id": "string",
- "send_queue_capacity": "string",
- "send_queue_size": "string",
- "priority": "string",
- "recently_sent": "string"
}
]
}, - "remote_ip": "string"
}
]
}
SendTransaction returns the result of sending signed tx. To ensure that transaction was successfully committed to the blockchain, you need to find the transaction by the hash and ensure that the status code equals to 0.
tx | string |
{- "tx": "string"
}
{- "code": "0",
- "log": "",
- "hash": "Mt6019f740983dc43b53ea9c37891af0c9ce7251399ebaafc4ea56d68d665adfcb"
}
SendTransaction returns the result of sending signed tx. To ensure that transaction was successfully committed to the blockchain, you need to find the transaction by the hash and ensure that the status code equals to 0.
tx required | string |
{- "code": "0",
- "log": "",
- "hash": "Mt6019f740983dc43b53ea9c37891af0c9ce7251399ebaafc4ea56d68d665adfcb"
}
{- "version": "string",
- "network": "string",
- "initial_height": "string",
- "latest_block_hash": "string",
- "latest_app_hash": "string",
- "latest_block_height": "string",
- "latest_block_time": "string",
- "keep_last_states": "string",
- "total_slashed": "string",
- "current_emission": "string",
- "catching_up": true,
- "public_key": "string",
- "node_id": "string",
- "moniker": "string"
}
{- "hash": "string",
- "raw_tx": "string",
- "height": "string",
- "index": "string",
- "from": "string",
- "nonce": "string",
- "gas": "string",
- "gas_price": "string",
- "gas_coin": {
- "id": "0",
- "symbol": "BIP"
}, - "type_hex": "string",
- "type": "string",
- "data": {
- "@type": "string",
- "property1": null,
- "property2": null
}, - "payload": "string",
- "service_data": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "code": "string",
- "log": "string"
}
Transactions returns transactions by query.
query required | string |
page | integer <int32> Default: "1" |
per_page | integer <int32> Default: "30" |
{- "transactions": [
- {
- "hash": "string",
- "raw_tx": "string",
- "height": "string",
- "index": "string",
- "from": "string",
- "nonce": "string",
- "gas": "string",
- "gas_price": "string",
- "gas_coin": {
- "id": "0",
- "symbol": "BIP"
}, - "type_hex": "string",
- "type": "string",
- "data": {
- "@type": "string",
- "property1": null,
- "property2": null
}, - "payload": "string",
- "service_data": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "code": "string",
- "log": "string"
}
]
}
Candidate returns candidate’s info by provided public key.
Name | Description |
---|---|
id | |
reward_address | Address where validator’s rewards go to. |
owner_address | Address that allows one to start the candidate by sending the SetCandidateOnline transaction or stop it by sending the SetCandidateOffline transaction. It also enables the owner to edit the node by sending EditCandidate. |
control_address | Address that allows one to start the candidate by sending the SetCandidateOnline transaction or stop it by sending the SetCandidateOffline transaction. |
total_stake | Total stake of a candidate |
public_key | Public key of a candidate |
commission | Commission (from 0 to 100) from rewards which delegators will pay to validator |
used_slots | Number of occupied steak slots. Note: filled in when request includes_stakes |
uniq_users | Number of unique wallets in steaks. Note: filled in when request includes_stakes |
min_stake | Smallest steak size. Note: filled in when request includes_stakes |
stakes | List of stakes. Note: filled in when request includes_stakes |
status | Candidate status. Available values: offline = 1, online = 2 |
validator | Is a validator at the current height |
jailed_until |
public_key required | string Public key of a candidate |
height | integer <uint64> Blockchain state height for the current request. Optional, the last default state of the node is used |
not_show_stakes | boolean Default: "false" Do not display a list of steaks. Note: used_slots, uniq_users, min_stake will be filled |
{- "id": "string",
- "reward_address": "string",
- "owner_address": "string",
- "control_address": "string",
- "total_stake": "string",
- "public_key": "string",
- "commission": "string",
- "used_slots": "string",
- "uniq_users": "string",
- "min_stake": "string",
- "stakes": [
- {
- "owner": "string",
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "status": "string",
- "validator": true,
- "jailed_until": "string"
}
Candidates returns list of candidates.
height | integer <uint64> Blockchain state height for the current request. Optional, the last default state of the node is used |
include_stakes | boolean Default: "false" Calculate field values used_slots, uniq_users, min_stake |
not_show_stakes | boolean Default: "false" Do not display the list of stakes, the include_stakes flag is also required to display. Note: used_slots, uniq_users, min_stake will still be filled if include_stakes flag is used |
status | string Default: "all" Enum: "all" "off" "on" "validator" "deleted" |
{- "candidates": [
- {
- "id": "string",
- "reward_address": "string",
- "owner_address": "string",
- "control_address": "string",
- "total_stake": "string",
- "public_key": "string",
- "commission": "string",
- "used_slots": "string",
- "uniq_users": "string",
- "min_stake": "string",
- "stakes": [
- {
- "owner": "string",
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "value": "string",
- "bip_value": "string"
}
], - "status": "string",
- "validator": true,
- "jailed_until": "string"
}
], - "deleted": [
- {
- "id": "string",
- "public_key": "string"
}
]
}
CoinInfo returns information about coin symbol.
symbol required | string |
height | integer <uint64> |
{- "id": "0",
- "name": "",
- "symbol": "BIP",
- "volume": "0",
- "crr": "0",
- "reserve_balance": "0",
- "max_supply": "10000000000000000000000000000",
- "owner_address": null
}
CoinInfoById returns information about coin ID.
id required | string <uint64> |
height | integer <uint64> |
{- "id": "0",
- "name": "",
- "symbol": "BIP",
- "volume": "0",
- "crr": "0",
- "reserve_balance": "0",
- "max_supply": "10000000000000000000000000000",
- "owner_address": null
}
LimitOrder returns order by ID.
order_id required | string <uint64> |
height | integer <uint64> |
{- "id": "string",
- "coin_sell": {
- "id": "0",
- "symbol": "BIP"
}, - "coin_buy": {
- "id": "0",
- "symbol": "BIP"
}, - "want_sell": "string",
- "want_buy": "string",
- "price": "string",
- "owner": "string",
- "height": "string"
}
LimitOrders returns orders by IDs.
ids | Array of strings <uint64> |
height | integer <uint64> |
{- "orders": [
- {
- "id": "string",
- "coin_sell": {
- "id": "0",
- "symbol": "BIP"
}, - "coin_buy": {
- "id": "0",
- "symbol": "BIP"
}, - "want_sell": "string",
- "want_buy": "string",
- "price": "string",
- "owner": "string",
- "height": "string"
}
]
}
LimitOrdersOfPool returns sell orders for a pair of coins.
sell_coin required | string <uint64> |
buy_coin required | string <uint64> |
limit | integer <int32> Default: "3" |
height | integer <uint64> |
{- "pool_price": "string",
- "orders": [
- {
- "id": "string",
- "coin_sell": {
- "id": "0",
- "symbol": "BIP"
}, - "coin_buy": {
- "id": "0",
- "symbol": "BIP"
}, - "want_sell": "string",
- "want_buy": "string",
- "price": "string",
- "owner": "string",
- "height": "string"
}
]
}
SwapPool returns total supply and reserves.
coin0 required | string <uint64> |
coin1 required | string <uint64> |
height | integer <uint64> |
{- "id": "string",
- "price": "string",
- "amount0": "string",
- "amount1": "string",
- "liquidity": "string"
}
SwapPoolProvider returns reserves and liquidity balance of provider.
coin0 required | string <uint64> |
coin1 required | string <uint64> |
provider required | string |
height | integer <uint64> |
{- "id": "string",
- "price": "string",
- "amount0": "string",
- "amount1": "string",
- "liquidity": "string"
}
SwapPools returns list of all pools.
height | integer <uint64> |
orders | boolean Default: "false" |
{- "pools": [
- {
- "id": "string",
- "price": "string",
- "coin0": "string",
- "coin1": "string",
- "amount0": "string",
- "amount1": "string",
- "liquidity": "string",
- "orders_sell": [
- {
- "id": "string",
- "want_sell": "string",
- "want_buy": "string",
- "price": "string",
- "owner": "string",
- "height": "string"
}
], - "orders_buy": [
- {
- "id": "string",
- "want_sell": "string",
- "want_buy": "string",
- "price": "string",
- "owner": "string",
- "height": "string"
}
]
}
]
}
CommissionVotes returns votes for update commissions.
target_version required | string <uint64> |
height | integer <uint64> |
{- "votes": [
- {
- "price": {
- "coin": {
- "id": "0",
- "symbol": "BIP"
}, - "payload_byte": "string",
- "send": "string",
- "buy_bancor": "string",
- "sell_bancor": "string",
- "sell_all_bancor": "string",
- "buy_pool_base": "string",
- "buy_pool_delta": "string",
- "sell_pool_base": "string",
- "sell_pool_delta": "string",
- "sell_all_pool_base": "string",
- "sell_all_pool_delta": "string",
- "create_ticker3": "string",
- "create_ticker4": "string",
- "create_ticker5": "string",
- "create_ticker6": "string",
- "create_ticker7_10": "string",
- "create_coin": "string",
- "create_token": "string",
- "recreate_coin": "string",
- "recreate_token": "string",
- "declare_candidacy": "string",
- "delegate": "string",
- "unbond": "string",
- "redeem_check": "string",
- "set_candidate_on": "string",
- "set_candidate_off": "string",
- "create_multisig": "string",
- "multisend_base": "string",
- "multisend_delta": "string",
- "edit_candidate": "string",
- "set_halt_block": "string",
- "edit_ticker_owner": "string",
- "edit_multisig": "string",
- "edit_candidate_public_key": "string",
- "create_swap_pool": "string",
- "add_liquidity": "string",
- "remove_liquidity": "string",
- "edit_candidate_commission": "string",
- "mint_token": "string",
- "burn_token": "string",
- "vote_commission": "string",
- "vote_update": "string",
- "failed_tx": "string",
- "add_limit_order": "string",
- "remove_limit_order": "string",
- "move_stake": "string",
- "lock_stake": "string",
- "lock": "string"
}, - "public_keys": [
- "string"
]
}
]
}
Subscribe returns a subscription for events by query. Only supported in WS and gRPC methods.
query required | string tm.event = 'NewBlock' or tm.event = 'Tx' |
{- "result": {
- "query": "string",
- "data": { },
- "events": [
- {
- "key": "string",
- "events": [
- "string"
]
}
]
}, - "error": null
}
TestBlock returns the list of example transactions in block. Available only testnet mode.
{- "hash": "string",
- "height": "string",
- "time": "string",
- "transaction_count": "string",
- "transactions": [
- {
- "hash": "string",
- "raw_tx": "string",
- "height": "string",
- "index": "string",
- "from": "string",
- "nonce": "string",
- "gas": "string",
- "gas_price": "string",
- "gas_coin": {
- "id": "0",
- "symbol": "BIP"
}, - "type_hex": "string",
- "type": "string",
- "data": {
- "@type": "string",
- "property1": null,
- "property2": null
}, - "payload": "string",
- "service_data": "string",
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "code": "string",
- "log": "string"
}
], - "block_reward": "string",
- "locked_stake_rewards": "string",
- "size": "string",
- "proposer": "string",
- "validators": [
- {
- "public_key": "string",
- "signed": true
}
], - "evidence": {
- "evidence": [
- { }
]
}, - "missed": [
- "string"
], - "events": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}