Get supported chains#
Retrieve information on chains supported by Market API.
Request URL#
GET https://web3.okx.com/api/v5/dex/market/supported/chain
Request Parameters#
Parameter | Type | Required | Description |
---|---|---|---|
chainIndex | String | No | Unique identifier for the chain. e.g., 1 : Ethereum. See more here. |
Response Parameters#
Parameter | Type | Description |
---|---|---|
chainIndex | String | Unique identifier for the chain |
chainName | String | Chain name (e.g.,Optimism ) |
chainSymbol | String | Chain symbol (e.g., ETH). |
Request Example#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/dex/market/supported/chain?chainIndex=1' \
--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":[
{
"chainIndex":"1",
"chainName":"Ethereum",
"chainSymbol":"ETH"
},
],
"msg":""
}