获取支持的桥信息#
获取欧易 DEX 跨链聚合器协议支持的跨链桥信息。
请求地址#
GET https://web3.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 |
| logo | String | 是 | 跨链桥标志 URL |
| supportedChains | Array | 是 | 该跨链桥支持的链ID |
请求示例#
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'
响应示例#
Json
{
"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": ""
}