获取仅通过跨链桥交易的币种列表
GET https://www.okx.com/api/v5/dex/cross-chain/supported/tokens
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
chainId | String | 否 | 链 ID (如1 : Ethereum,更多可查看链 ID 列表) |
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
chainId | String | 是 | 链 ID (如1 : Ethereum,更多可查看链 ID 列表) |
decimals | Integer | 是 | 币种精度 (如: 18 ) |
tokenContractAddress | String | 是 | 币种合约地址 (如 :0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 ) |
tokenName | String | 是 | 币种符号 (如:USDC ) |
tokenSymbol | String | 是 | 币种精度 (如: 6 ) |
curl --location --request GET 'https://www.okx.com/api/v5/dex/cross-chain/supported/tokens' \
--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": "1",
"decimals": 6,
"tokenContractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"tokenName": "USDC",
"tokenSymbol": "USDC"
},
{
"chainId": "1",
"decimals": 18,
"tokenContractAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"tokenName": "Wrapped Ether",
"tokenSymbol": "WETH"
}
],
"msg": ""
}