Address
APIs to obtain address related details
Asset Type
Asset | Type | Description |
OEP4 | String | oep4 asset |
OEP5 | String | oep5 asset |
OEP8 | String | oep8 asset |
Native | String | ont, ong, waitbound ong, unbound ong |
Native Asset
Value | Type | Description |
ont | String | ont |
ong | String | ong |
waitboundong | String | waitbound ong |
unboundong | String | unbound ong |
1. Get address balance by token type
URL Field | Type | Description |
address | String | address |
token_type | String | oep4|OEP4|oep5|OEP5|oep8|OEP8|native|NATIVE|all|ALL |
ResponseField | Type | Description |
asset_name | String | asset name |
balance | String | balance |
asset_type | String | asset type:oep4, oep5, oep8, native |
contract_hash | String | contract hash |
2. Get address balance by asset name
URL Field | Type | Description |
address | String | address |
assetName | String | asset name. ong, ont or oep token symbol |
ResponseField | Type | Description |
asset_name | String | asset name |
balance | String | balance |
asset_type | String | asset type:oep4, oep5, oep8, native |
contract_hash | String | contract hash |
3. Get address balance by contract hash
URL Field | Type | Description |
address | String | address |
contractHash | String | contract hash |
ResponseField | Type | Description |
asset_name | String | asset name |
balance | String | balance |
asset_type | String | asset type:oep4, oep5, oep8, native |
contract_hash | String | contract Hash |
4. Get transaction list by address and page
Url RequestField | Type | Description |
address | String | address |
page_size | int | number of records in one page (The page size is limited between 1 and 20) |
page_number | int | number of the page (At least 1 or greater) |
ResponseField | Type | Description |
tx_hash | String | transaction hash |
confirm_flag | int | transaction state on the blockchain, 1:success 0:failure |
block_height | int | block height |
tx_type | int | (208/209/210) |
tx_time | int | UNIX time of the transaction |
fee | String | fee |
block_index | int | index in the block |
transfers.from_address | String | from_address |
transfers.to_address | String | to_address |
transfers.amount | String | amount |
transfers.asset_name | String | asset name |
transfers.contract_hash | String | contract hash |
5. Get transaction list by address and time
Url RequestField | Type | Description |
address | String | address |
end_time | int | unxi time |
begin_time | int | UNIX time. The maximum time range is one week. |
ResponseField | Type | Description |
tx_hash | String | transaction hash |
confirm_flag | int | transaction state on the blockchain,1:success 0:failure |
block_height | int | block height |
tx_type | int | 208 or 209 |
tx_time | int | UNIX time of the transaction |
fee | String | fee |
block_index | int | index in the block |
transfers.from_address | String | from_address |
transfers.to_address | String | to_address |
transfers.amount | String | amount |
transfers.asset_name | String | asset name |
transfers.contract_hash | String | contract hash |
6. Get transaction list by address and asset name and page
Url RequestField | Type | Description |
address | String | address |
asset_name | String | asset name |
page_size | int | number of records in one page (The page size is limited between 1 and 20) |
page_number | int | number of the page (At least 1 or greater) |
ResponseField | Type | Description |
tx_hash | String | transaction hash |
confirm_flag | int | transaction state on the blockchain,1:success 0:failure |
block_height | int | block height |
tx_type | int | 208 or 209 |
tx_time | int | UNIX time of the transaction |
fee | String | fee |
block_index | int | index in the block |
transfers.from_address | String | from_address |
transfers.to_address | String | to_address |
transfers.amount | String | amount |
transfers.asset_name | String | asset name |
transfers.contract_hash | String | contract hash |
7. Get transaction list by address and asset name and time
Url RequestField | Type | Description |
address | String | address |
asset_name | String | asset name |
begin_time | int | UNIX time |
end_time | int | UNIX time The maximum time range is one week. |
ResponseField | Type | Description |
tx_hash | String | transaction hash |
confirm_flag | int | transaction state on the blockchain,1:success 0:failure |
block_height | int | block height |
tx_type | int | 208 or 209 |
tx_time | int | UNIX time of the transaction |
fee | String | fee |
block_index | int | index in the block |
transfers.from_address | String | from_address |
transfers.to_address | String | to_address |
transfers.amount | String | amount |
transfers.asset_name | String | asset name |
transfers.contract_hash | String | contract hash |
8. Get staking information in all nodes by address
request:
Field_Name | Type | Description |
---|---|---|
address | String | wallet address |
response:
Field_Name | Type | Description |
---|---|---|
node_name | String | node name |
node_pub_key | String | node public key |
amount | String | ONT amount |
state | int | state: 1-processing;2-staking;3-claimable;4-cancelling |
Last updated