Portal pengembangan
Tema

Get Transaction API Supported Chains#

Retrieve the chains supported by each Transaction API endpoint. Each response row represents one API-chain pair.

Request URL#

GET
https://web3.okx.com/api/v6/explorer/transaction/supported-chains

Request Parameters#

None.

Response Parameters#

ParameterTypeDescription
apiNameStringModule-local API name without the transaction/ prefix, e.g., transaction-multi.
chainIndexStringUnique identifier of the chain, e.g., 1 for Ethereum.
chainNameStringChain name, e.g., Ethereum.
chainSymbolStringNative token symbol, e.g., ETH.

Request Example#

shell
curl --location --request GET 'https://web3.okx.com/api/v6/explorer/transaction/supported-chains' \
--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#

json
{
  "code": "0",
  "msg": "",
  "data": [
    {
      "apiName": "transaction-multi",
      "chainIndex": "1",
      "chainName": "Ethereum",
      "chainSymbol": "ETH"
    },
    {
      "apiName": "token-transfer-multi",
      "chainIndex": "1",
      "chainName": "Ethereum",
      "chainSymbol": "ETH"
    }
  ]
}