Query the tokens added for wallet account.
GET https://www.okx.com/api/v5/wallet/asset/all-tokens
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | No | If this parameter presents: List the tokens added under specific wallet account If not present: Delete tokens added globally under project |
chainIndex | String | No | Unique identifier of the chain. If not specified, returns all |
limit | String | No | Number of entries per query, default is 50, maximum is 100 |
cursor | String | No | Cursor position, default is the first |
Parameter | Type | Description |
---|---|---|
cursor | String | Cursor position |
tokens | Array | Token information |
>chainIndex | String | Unique identifier of the chain |
>decimals | String | Token precision |
>tokenAddress | String | Token contract address |
>logoUrl | String | Token logo |
>name | String | Full name of the token |
>symbol | String | Abbreviation of the token |
curl --location --request GET 'https://www.okx.com/api/v5/wallet/asset/all-tokens?accountId=13886e05-1265-4b79-8ac3-b7ab46217655&chainIndex=3&limit=20&cursor=1' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'
{
"code": "0",
"msg": "",
"data": [
{
"cursor": "20",
"tokens": [
{
"chainIndex": "3",
"decimals": "18",
"tokenAddress": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
"logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/okb.png",
"name": "OKB",
"symbol": "OKB"
},
{
"chainIndex": "3",
"decimals": "6",
"tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/usdt.png",
"name": "Tether",
"symbol": "USDT"
}
]
}
]
}