DeFi API
查询网络列表

查询网络列表#

描述:如果 network 或 chainId 信息准确无误,则该 API 将提供指定网络或链 ID 的信息。如果参数不存在,则会列出所有支持网络的信息。

请求地址#

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

请求参数#

参数名称相关描述参数类型必传数据类型
network网络名称请求参数String
chainId公链 ID请求参数String

响应参数#

参数名称相关描述数据类型
symbol网络名String
chainId链 IDString

请求示例#

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' \

响应示例#

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"
}
    ]
}