Token
The Token API allows you to easily get token information.
Last updated
The Token API allows you to easily get token information.
Last updated
get
/v1/token
chain_id
: required, chain id, eg: eth
, bsc
, xdai
, .
id
: required, - The address of the token contract or a native token id (eth, matic, bsc).
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
/v1/token/list_by_ids
ids
: required, List of token addresses, up to 100.
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
/v1/token/top_holders
id
: string
required, token address, also support native token id, eg. eth, bsc
start
: integer
offset, default is 0, max is 10000.
limit
: integer
limit size, default is 100, max is 100.
Array
of address with token amount, in reverse order of holding token amount.
Request
Result
get
/v1/token/history_price
id
: string
required, token address, also support native token id, eg. eth, bsc
date_at
: string
required, UTC time zone. eg. 2023-05-18
price
: float
, history price at a specified time.
Request
Result
chain_id
: required, chain id, eg: eth
, bsc
, xdai
, .
chain_id
: required, chain id, eg: eth
, bsc
, xdai
, .
chain_id
: required, chain id, eg: eth
, bsc
, xdai
, .