Returns information about all currently supported blockchain networks, such as Bitcoin, Ethereum, etc.
GET https://www.okx.com/api/v5/waas/blockchain/get-all-chains
None
Parameter | Type | Description |
---|---|---|
name | String | Network name |
logoUrl | String | Logo url |
shortName | String | Network abbreviation |
enableGas | Boolean | Whether to support gas mechanism |
coinId | String | Unique identifier of the main chain coin |
chainId | String | Unique identifier of the chain |
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'
{
"code": "0",
"data": [{
"name": "Ethereum",
"logoUrl": "http://www.eth.org/eth.png",
"shortName": "ETH",
"enableGas": true,
"coinId": "3",
"chainId": "1"
}],
"msg": "success"
}