获取支持的链#
获取 Market API 支持的链信息。
请求地址#
GET https://web3.okx.com/api/v6/dex/market/supported/chain
请求参数#
| Parameter | Type | Required | Description | 
|---|---|---|---|
| chainIndex | String | 否 | 链的唯一标识。 (如1代表Ethereum。 更多可查看这里。) | 
响应参数#
| Parameter | Type | Description | 
|---|---|---|
| chainIndex | String | 链的唯一标识。 | 
| chainName | String | 链名称 (如Ethereum)。 | 
| chainLogoUrl | String | 链 icon | 
| chainSymbol | String | 链符号 (如ETH)。 | 
请求示例#
shell
curl --location --request GET 'https://web3.okx.com/api/v6/dex/market/supported/chain?chainIndex=1' \
--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":""
  }
