获取欧易 DEX 聚合器协议支持直接进行跨链桥交易的币对列表。
GET https://www.okx.com/api/v5/dex/cross-chain/supported/bridge-tokens-pairs
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
fromChainId | String | 是 | 链 ID (如1 : Ethereum,更多可查看链 ID 列表) |
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
fromChainId | String | 是 | 源链 ID (如1 : Ethereum,更多可查看链 ID 列表) |
toChainId | String | 是 | 目标链 ID (如1 : Ethereum,更多可查看链 ID 列表) |
fromTokenAddress | String | 是 | 询价币种合约地址 (如 :0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 ) |
toTokenAddress | String | 是 | 目标币种合约地址 (如 :0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 ) |
fromTokenSymbol | String | 是 | 源链币种简称 (如: USDC ) |
toTokenSymbol | String | 是 | 目标链币种简称 (如: USDC ) |
curl --location --request GET 'https://www.okx.com/api/v5/dex/cross-chain/supported/bridge-tokens-pairs?fromChainId=784' \
--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": [
{
"fromChainId": "1",
"toChainId": "10",
"fromTokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"toTokenAddress": "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
"fromTokenSymbol": "USDC",
"toTokenSymbol": "USDC"
}
],
"msg": ""
}