Token

The Token API allows you to easily get token information.

Get token information

Method

get

Path

/v1/token

Parameters

  • chain_id : required, chain id, eg: eth, bsc, xdai, for more info.

  • id : required, - The address of the token contract or a native token id (eth, matic, bsc).

Returns

Object - An object with the following fields:

  • id : string - The address of the token contract.

  • chain : string - The chain's name.

  • name : string - The token's name. null if not defined in the contract and not available from other sources.

  • symbol : string - The token's symbol. null if not defined in the contract and not available from other sources.

  • display_symbol : string - The token's displayed symbol. If two tokens have the same symbol, they are distinguished by display_symbol .

  • optimized_symbol : string - For front-end display. optimized_symbol || display_symbol || symbol

  • decimals : integer - The number of decimals of the token. null if not defined in the contract and not available from other sources.

  • protocol_id : string - token associated protocol's id. Empty string if not available.

  • logo_url : string - URL of the token's logo image. null if not available.

  • is_core:boolean - Whether or not to show as a common token in the wallet.

  • price: double - USD price. Price of 0 means no data.

  • time_at : integer - The timestamp when the current token was deployed on the blockchain.

Request

Result

Get the list of the token information

Method

get

Path

/v1/token/list_by_ids

Parameters

  • chain_id : required, chain id, eg: eth, bsc, xdai, for more info.

  • ids : required, List of token addresses, up to 100.

Returns

Array of Object - An object with following fields:

  • id : string - The address of the token contract.

  • chain : string - The chain's name.

  • name : string - The token's name. null if not defined in the contract and not available from other sources.

  • symbol : string - The token's symbol. null if not defined in the contract and not available from other sources.

  • display_symbol : string - The token's displayed symbol. If two tokens have the same symbol, they are distinguished by display_symbol .

  • optimized_symbol : string - For front-end display. optimized_symbol || display_symbol || symbol

  • decimals : integer - The number of decimals of the token. null if not defined in the contract and not available from other sources.

  • logo_url : string - URL of the token's logo image. null if not available.

  • protocol_id : string - token associated protocol's id. Empty string if not available.

  • is_core:boolean - Whether or not to show as a common token in the wallet.

  • price: double - USD price. Price of 0 means no data.

  • time_at : integer - The timestamp when the current token was deployed on the blockchain.

Request

Result

Get top holders of token

Method

get

Path

/v1/token/top_holders

Parameters

  • id : string required, token address, also support native token id, eg. eth, bsc

  • chain_id : required, chain id, eg: eth, bsc, xdai, for more info.

  • start: integer offset, default is 0, max is 10000.

  • limit: integer limit size, default is 100, max is 100.

Returns

Array of address with token amount, in reverse order of holding token amount.

Request

Result

Get token history price

Method

get

Path

/v1/token/history_price

Parameters

  • id : string required, token address, also support native token id, eg. eth, bsc

  • chain_id : required, chain id, eg: eth, bsc, xdai, for more info.

  • date_at: string required, UTC time zone. eg. 2023-05-18

Returns

  • price: float, history price at a specified time.

Request

Result

Last updated