More resources

Query supported coins#

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.

Request URL#

GET https://www.okx.com/api/v5/waas/asset/get-all-coins

Request parameters#

ParameterTypeRequiredDescription
typeStringYesCoin request method
0: Platform coin
1: Custom token

Response parameters#

ParameterTypeDescription
chainIdStringUnique identifier of the chain
coinIdStringUnique identifier of the coin
decimalsStringCoin precision
logoUrlStringCoin logo
nameStringFull name of the coin
symbolStringCoin abbreviation
tokenAddressStringToken contract address
updateTimeStringCoin information update time (timestamp)

Request example#

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

Response example#

200
{
	"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": ""
}