Returns information about all currently supported coins, including main chain coins (such as ETH) and tokens issued on the chain (such as USDT). Depending on the parameters, it returns the default supported coins and the coins added by the project.
GET https://www.okx.com/api/v5/waas/asset/get-all-coins
Parameter | Type | Required | Description |
---|---|---|---|
type | String | Yes | Coin request method 0: Platform coin 1: Custom token |
Parameter | Type | Description |
---|---|---|
chainId | String | Unique identifier of the chain |
coinId | String | Unique identifier of the coin |
decimals | String | Coin precision |
logoUrl | String | Coin logo |
name | String | Full name of the coin |
symbol | String | Coin abbreviation |
tokenAddress | String | Token contract address |
updateTime | String | Coin information update time (timestamp) |
curl --location --request GET 'https://www.okx.com/api/v5/waas/asset/get-all-coins?type=0' \
--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",
"data": [{
"chainId": "1",
"coinId": "3",
"decimals": "18",
"logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/ETH-20220328.png",
"name": "Ethereum",
"symbol": "ETH",
"tokenAddress": "",
"updateTime": "1543198579776"
},
{
"chainId": "61",
"coinId": "4",
"decimals": "18",
"logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/ETC.png",
"name": "Ethereum Classic",
"symbol": "ETC",
"tokenAddress": "",
"updateTime": "1543198579776"
}
],
"msg": ""
}