Get Supported Chains#
Retrieve information on chains supported by Onchain gateway API
Request URL#
GET https://web3.okx.com/api/v5/dex/pre-transaction/supported/chain
Request Parameters#
None
Response Parameters#
Parameter | Type | Description |
---|---|---|
name | String | Chain name |
logoUrl | String | Chain logo URL |
shortName | String | Chain short name |
chainIndex | String | Chain unique identifier |
Request Example#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/dex/pre-transaction/supported/chain' \
--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'
Response Example#
200
{
"code": "0",
"data": [
{
"name": "Ethereum",
"logoUrl": "http://www.eth.org/eth.png",
"shortName": "ETH",
"chainIndex": "1"
}
],
"msg": ""
}