获取支持跨链兑换的链信息,通过请求返回支持跨入的目标链。
GET https://www.okx.com/api/v5/dex/cross-chain/supported/chain
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
chainId | String | 否 | 链的唯一标识。 传空,则默认返回所有支持的链信息。 传指定的链 id,则返回对应链的信息。如 1 : Ethereum,更多可查看资源部分。 |
参数 | 类型 | 描述 |
---|---|---|
chainId | String | 链的唯一标识。 (如1 : Ethereum,更多可查看资源部分) |
chainName | String | 链名称 (如Optimism ) |
dexTokenApproveAddress | String | dex 授权合约地址 |
curl --location --request GET 'https://www.okx.com/api/v5/dex/cross-chain/supported/chain' \
--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": [
{
"chainId": "137",
"chainName": "Polygon",
"dexTokenApproveAddress": "0x3B86917369B83a6892f553609F3c2F439C184e31"
},
{
"chainId": "195",
"chainName": "TRON",
"dexTokenApproveAddress": "THRAE2VhGNAcvPKtT96AqyXtSQwhiU1XL8"
},
{
"chainId": "43114",
"chainName": "Avalanche C",
"dexTokenApproveAddress": "0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f"
},
{
"chainId": "1",
"chainName": "Ethereum",
"dexTokenApproveAddress": "0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f"
},
{
"chainId": "66",
"chainName": "OKTC",
"dexTokenApproveAddress": "0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58"
},
{
"chainId": "56",
"chainName": "BNB Chain",
"dexTokenApproveAddress": "0x2c34A2Fb1d0b4f55de51E1d0bDEfaDDce6b7cDD6"
},
{
"chainId": "250",
"chainName": "Fantom",
"dexTokenApproveAddress": "0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58"
},
{
"chainId": "42161",
"chainName": "Arbitrum",
"dexTokenApproveAddress": "0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58"
},
{
"chainId": "10",
"chainName": "Optimism",
"dexTokenApproveAddress": "0x68D6B739D2020067D1e2F713b999dA97E4d54812"
},
{
"chainId": "25",
"chainName": "Cronos",
"dexTokenApproveAddress": "0x70cbb871e8f30fc8ce23609e9e0ea87b6b222f58"
},
{
"chainId": "501",
"chainName": "Solana",
"dexTokenApproveAddress": ""
},
{
"chainId": "324",
"chainName": "zkSync Era",
"dexTokenApproveAddress": "0xc67879F4065d3B9fe1C09EE990B891Aa8E3a4c2f"
},
{
"chainId": "1030",
"chainName": "Conflux eSpace",
"dexTokenApproveAddress": "0x68D6B739D2020067D1e2F713b999dA97E4d54812"
},
{
"chainId": "784",
"chainName": "SUI",
"dexTokenApproveAddress": ""
},
{
"chainId": "1101",
"chainName": "Polygon zkEvm",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "59144",
"chainName": "Linea",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "5000",
"chainName": "Mantle",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "8453",
"chainName": "Base",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "534352",
"chainName": "Scroll",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "196",
"chainName": "X Layer",
"dexTokenApproveAddress": "0x8b773D83bc66Be128c60e07E17C8901f7a64F000"
},
{
"chainId": "169",
"chainName": "Manta Pacific",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "1088",
"chainName": "Metis",
"dexTokenApproveAddress": "0x57df6092665eb6058DE53939612413ff4B09114E"
},
{
"chainId": "7000",
"chainName": "Zeta",
"dexTokenApproveAddress": "0x03B5ACdA01207824cc7Bc21783Ee5aa2B8d1D2fE"
},
{
"chainId": "4200",
"chainName": "Merlin",
"dexTokenApproveAddress": "0x8b773D83bc66Be128c60e07E17C8901f7a64F000"
},
{
"chainId": "81457",
"chainName": "Blast",
"dexTokenApproveAddress": "0x5fD2Dc91FF1dE7FF4AEB1CACeF8E9911bAAECa68"
},
{
"chainId": "607",
"chainName": "TON",
"dexTokenApproveAddress": ""
}
],
"msg": ""
}