DEX API

获取支持的桥信息#

获取欧易 DEX 跨链聚合器协议支持的跨链桥信息。

请求地址#

GET https://www.okx.com/api/v5/dex/cross-chain/supported/bridges

请求参数#

参数类型必传描述
chainIdString链 ID (如1: Ethereum,更多可查看链 ID 列表)

响应参数#

参数类型必传描述
bridgeNameString跨链桥名称 (如: cBridge)
bridgeIdInteger跨链桥 ID (如: 211)
requireOtherNativeFeeboolean该跨链桥是否要求NativeFee
supportedChainsArray该跨链桥支持的链ID

请求示例#

shell
curl --location --request GET 'https://www.okx.com/api/v5/dex/cross-chain/supported/bridges' \
--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": [
      {
        "bridgeId":211,
        "bridgeName":"cBridge",
        "requireOtherNativeFee": false,
        "supportedChains": [
              "1",
              "56",
              "137"
         ]
      },
      {
        "bridgeId":235,
        "bridgeName":"swft",
        "requireOtherNativeFee": false,
        "supportedChains": [
            "56",
            "137",
            "43114"
        ]
      }
  ],
  "msg": ""
}