DEX API
Get supported bridges

Get supported bridges#

Get information of the cross-chain bridges supported by OKX’s DEX cross-chain aggregator protocol.

Request address#

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

Request param#

ParameterTypeRequiredDescription
chainIdStringNoChain ID (e.g., 1 for Ethereum. See Chain IDs)

Response param#

ParameterTypeRequiredDescription
bridgeNameStringYesName of bridge (e.g., cBridge)
bridgeIdIntegerYesBridge ID (e.g., 211)
requiredOtherNativeFeebooleanYesif this bridge require native fee
supportedChainsArrayYesReturn chain id that bridge supported

Request example#

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'

Response example#

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": ""
}