获取欧易 DEX 跨链聚合器协议支持的跨链桥信息。
GET https://www.okx.com/api/v5/dex/cross-chain/supported/bridges
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
chainId | String | 否 | 链 ID (如1 : Ethereum,更多可查看链 ID 列表) |
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
bridgeName | String | 是 | 跨链桥名称 (如: cBridge ) |
bridgeId | Integer | 是 | 跨链桥 ID (如: 211 ) |
requireOtherNativeFee | boolean | 是 | 该跨链桥是否要求NativeFee |
supportedChains | Array | 是 | 该跨链桥支持的链ID |
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'
{
"code": "0",
"data": [
{
"bridgeId":211,
"bridgeName":"cBridge",
"requireOtherNativeFee": false,
"supportedChains": [
"1",
"56",
"137"
]
},
{
"bridgeId":235,
"bridgeName":"swft",
"requireOtherNativeFee": false,
"supportedChains": [
"56",
"137",
"43114"
]
}
],
"msg": ""
}