Trade API

Get Supported Bridges#

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

Request URL#

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

Request Parameters#

ParameterTypeRequiredDescription
chainIndexStringNoUnique identifier for the chain.
e.g., 1: Ethereum.
See more here.
chainIdStringNoUnique identifier for the chain.
It will be deprecated in the future.

Response Parameters#

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

Request Example#

shell
curl --location --request GET 'https://web3.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,
      "logoUrl":"...",
      "supportedChains": [
          "1",
          "56",
          "137"
      ]
    },
    {
      "bridgeId":235,
      "bridgeName":"swft",
      "requireOtherNativeFee": false,
      "logoUrl":"...",
      "supportedChains": [
          "56",
          "137",
          "43114"
      ]
    }
  ],
  "msg": ""
}