DeFi API
Query token list

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://www.okx.com/api/v5/defi/explore/token/list

Request parameters#

Parameter nameDescriptionLocationRequiredData type
tokenAddressToken contract addressQueryNoString
chainIdToken blockchain IDQueryNoString

Response parameters#

Parameter nameDescriptionData type
symbolPlatform IDString
tokenInfosToken informationArray[Struct]
>tokenIdToken IDString
>tokenSymbolToken symbolString
>networkToken network nameString
>logoUrlToken logo URLString
>tokenAddressToken contract addressString

Request example#

shell
curl --location 'https://www.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"
}
    ]
}
    ]
}