钱包 API
获取支持的币种

获取支持的币种#

返回 OKX WaaS 服务默认收录的所有币种,观察钱包默认展示。

该列表会跟随行业热点保持更新,如有其他币种需要收录请联系我们。

请求路径#

GET https://www.okx.com/api/v5/waas/wallet/token/default-tokens

请求参数#

ParameterTypeRequiredDescription
chainIndexStringNo链唯一标识,不指定则返回所有
limitStringNo每次查询多少条,默认值为 50,最大 100
cursorStringNo游标位置,默认为第一个

响应参数#

ParameterTypeDescription
cursorString游标
tokensArray币种列表
>chainIndexString链唯一标识
>decimalsString币种精度
>tokenAddressString代币合约地址
>logoUrlString币种 logo 标志
>nameString币种全称
>symbolString币种简称

请求示例#

shell
curl --location --request GET 'https://www.okx.com/api/v5/waas/wallet/token/default-tokens' \
--header 'Content-Type: application/json' \
--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'

响应示例#

200
{
    "code": "0",
    "msg": "",
    "data": [
        {
            "cursor": "1",
            "tokens": [
                {
                    "chainIndex": 3,
                    "decimals": 18,
                    "tokenAddress": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
                    "logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/okb.png",
                    "name": "OKB",
                    "symbol": "OKB",
                },
                {
                    "chainIndex": 3,
                    "decimals": 6,
                    "tokenAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                    "logoUrl": "https://static.coinall.ltd/cdn/wallet/logo/usdt.png",
                    "name": "Tether",
                    "symbol": "USDT",
                }
            ]
        }
    ]
}