Query token list#
Description: This API provides information about specific tokens if the tokenAddress and chainId parameters are accurate. If the parameters do not exist, it will list information about all tokens.
Request URL#
GET https://web3.okx.com/api/v5/defi/explore/token/list
Request parameters#
| Parameter name | Description | Location | Required | Data type | 
|---|---|---|---|---|
| tokenAddress | Token contract address | Query | No | String | 
| chainId | Token blockchain ID | Query | No | String | 
Response parameters#
| Parameter name | Description | Data type | 
|---|---|---|
| symbol | Platform ID | String | 
| tokenInfos | Token information | Array[Struct] | 
| >tokenId | Token ID | String | 
| >tokenSymbol | Token symbol | String | 
| >network | Token network name | String | 
| >logoUrl | Token logo URL | String | 
| >tokenAddress | Token contract address | String | 
Request example#
shell
curl --location 'https://web3.okx.com/api/v5/defi/explore/token/list' \
--header 'OK-ACCESS-KEY: 24b****53' \
--header 'OK-ACCESS-PASSPHRASE: p****d' \
Response example#
200
{
    "code": 0,
    "msg": "",
    "data": [
{
    "symbol": "oSQTH",
    "tokenInfos": [
{
    "tokenId": "7042",
    "tokenSymbol": "oSQTH",
    "network": "ETH",
    "logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/icon_unknow.png",
    "tokenAddress": "0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b"
}
    ]
},
{
    "symbol": "DFI",
    "tokenInfos": [
{
    "tokenId": "3533",
    "tokenSymbol": "DFI",
    "network": "ETH",
    "logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/icon_custom_default_D.png",
    "tokenAddress": "0x8fc8f8269ebca376d046ce292dc7eac40c8d358a"
},
{
    "tokenId": "8645",
    "tokenSymbol": "DFI",
    "network": "BSC",
    "logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/icon_custom_default_D.png",
    "tokenAddress": "0x361c60b7c2828fcab80988d00d1d542c83387b50"
}
    ]
}
    ]
}
