Wallet API
Delete Token

Delete Token#

If you do not need to include a specific token in your asset query, you can delete it using this interface.

Request Path#

POST https://www.okx.com/api/waas/wallet/asset/delete-token

Request Parameters#

ParameterTypeRequiredDescription
accountIdStringNoIf this parameter presents: Delete custom token under specific user wallet account
If not present: Delete custom token globally under project
chainIndexStringYesUnique identifier of the chain
tokenAddressStringYesToken address

Response Parameters#

None

Request Example#

shell
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"
}'

响应示例#

200
{
        "code": "0",
        "data": [],
        "msg": "success"
}