Market API

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#

ParameterTypeRequiredDescription
chainIndexStringNoUnique identifier for the chain.
e.g., 1: Ethereum.
See more here.

Response Parameters#

ParameterTypeDescription
chainIndexStringUnique identifier for the chain
chainNameStringChain name (e.g.,Optimism)
chainSymbolStringChain 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":""
  }