描述:如果 network 或 chainId 信息准确无误,则该 API 将提供指定网络或链 ID 的信息。如果参数不存在,则会列出所有支持网络的信息。
GET https://www.okx.com/api/v5/defi/explore/network-list
参数名称 | 相关描述 | 参数类型 | 必传 | 数据类型 |
---|---|---|---|---|
network | 网络名称 | 请求参数 | 否 | String |
chainId | 公链 ID | 请求参数 | 否 | String |
参数名称 | 相关描述 | 数据类型 |
---|---|---|
symbol | 网络名 | String |
chainId | 链 ID | String |
curl --location 'https://www.okx.com/api/v5/defi/explore/network-list' \
--header 'OK-ACCESS-KEY: 89****53' \
--header 'OK-ACCESS-PASSPHRASE: p****d' \
{
"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"
}
]
}