DeFi API
Query network list

Query network list#

Description: This API provides information about a specified network or chain ID if the network or chainId information is accurate. If the parameters are not provided, it will list information for all supported networks.

Request URL#

GET https://www.okx.com/api/v5/defi/explore/network-list

Request parameters#

Parameter nameDescriptionParameter typeRequiredData type
networkNetwork nameQuery parameterNoString
chainIdChain IDQuery parameterNoString

Response parameters#

Parameter nameDescriptionParameter type
symbolNetwork nameString
chainIdChain IDString

Request example#

shell
curl --location 'https://www.okx.com/api/v5/defi/explore/network-list' \
--header 'OK-ACCESS-KEY: 89****53' \
--header 'OK-ACCESS-PASSPHRASE: p****d' \

Response example#

200
{
    "code": 0,
    "msg": "",
    "data": [
{
    "symbol": "Ethereum",
    "chainId": "1"
},
{
    "symbol": "OKTC",
    "chainId": "66"
},
{
    "symbol": "BNB Chain",
    "chainId": "56"
},
{
    "symbol": "Polygon",
    "chainId": "137"
},
{
    "symbol": "Avalanche C",
    "chainId": "43114"
},
{
    "symbol": "TRON",
    "chainId": "195"
},
{
    "symbol": "Solana",
    "chainId": "501"
},
{
    "symbol": "Arbitrum",
    "chainId": "42161"
},
{
    "symbol": "Optimism",
    "chainId": "10"
},
{
    "symbol": "Fantom",
    "chainId": "250"
},
{
    "symbol": "Conflux",
    "chainId": "1030"
},
{
    "symbol": "Sui",
    "chainId": "784"
},
{
    "symbol": "zkSync Era",
    "chainId": "324"
},
{
    "symbol": "Stacks",
    "chainId": "5757"
},
{
    "symbol": "BTC",
    "chainId": "0"
},
{
    "symbol": "Core",
    "chainId": "1116"
},
{
    "symbol": "Mantle",
    "chainId": "5000"
},
{
    "symbol": "Base",
    "chainId": "8453"
},
{
    "symbol": "Polygon zkEVM",
    "chainId": "1101"
}
    ]
}