获取支持的链#
获取交易上链 API 支持的链信息。
请求路径#
GET https://web3.okx.com/api/v6/dex/pre-transaction/supported/chain
请求参数#
无
响应参数#
| Parameter | Type | Description | 
|---|---|---|
| name | String | 链名称 | 
| logoUrl | String | 链标志 URL | 
| shortName | String | 链简称 | 
| chainIndex | String | 链唯一标识 | 
请求示例#
shell
curl --location --request GET 'https://web3.okx.com/api/v6/dex/pre-transaction/supported/chain'
--header 'Content-Type: application/json' \
--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": [
        {
            "name": "Ethereum",
            "logoUrl": "http://www.eth.org/eth.png",
            "shortName": "ETH",
            "chainIndex": "1"
        }
    ],
    "msg": ""
}
