获取支持的链#
获取 Market API 支持的链信息。
请求地址#
GET https://web3.okx.com/api/v5/dex/market/supported/chain
请求参数#
Parameter | Type | Required | Description |
---|---|---|---|
chainIndex | String | 否 | 链的唯一标识。 (如1代表Ethereum。 更多可查看这里。) |
响应参数#
Parameter | Type | Description |
---|---|---|
chainIndex | String | 链的唯一标识。 |
chainName | String | 链名称 (如Ethereum)。 |
chainSymbol | String | 链符号 (如ETH)。 |
请求示例#
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'
响应示例#
200
{
"code":"0",
"data":[
{
"chainIndex":"1",
"chainName":"Ethereum",
"chainSymbol":"ETH"
},
],
"msg":""
}