Wallet API
Get supported blockchain

Get supported blockchain#

Returns information about all currently supported blockchain networks, such as Bitcoin, Ethereum, etc.

Request URL#

GET https://www.okx.com/api/v5/waas/blockchain/get-all-chains

Request parameters#

None

Response parameters#

ParameterTypeDescription
nameStringNetwork name
logoUrlStringLogo url
shortNameStringNetwork abbreviation
enableGasBooleanWhether to support gas mechanism
coinIdStringUnique identifier of the main chain coin
chainIdStringUnique identifier of the chain

Request example#

shell
curl --location --request GET 'https://www.okx.com/api/v5/waas/blockchain/get-all-chains' \
--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": [{
		"name": "Ethereum",
		"logoUrl": "http://www.eth.org/eth.png",
		"shortName": "ETH",
		"enableGas": true,
		"coinId": "3",
		"chainId": "1"
	}],
	"msg": "success"
}