If you do not need to include a specific token in your asset query for wallet account, you can delete it using this interface.
POST https://www.okx.com/api/v5/wallet/asset/delete-token
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | No | If this parameter presents: Delete custom token under specific wallet account If not present: Delete custom token globally under project |
chainIndex | String | Yes | Unique identifier of the chain |
tokenAddress | String | Yes | Token address |
None
curl --location --request POST 'https://www.okx.com/api/v5/waas/wallet/asset/delete-token' \
--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' \
--data-raw '{
"accountId":"bb20c5f5-cf93-4cdc-ab4f-a3ec6eb1db40",
"chainIndex": "10",
"tokenAddress": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2"
}'
{
"code": "0",
"data": [],
"msg": "success"
}