钱包 API
获取支持的区块链

获取支持的区块链#

返回 OKX WaaS 当前支持的所有区块链网络的信息,如 Bitcoin,Ethereum 网络上的 logo 和主链币唯一标识等。

请求路径#

GET https://www.okx.com/api/v5/waas/wallet/chain/supported-chains

请求参数#

响应参数#

ParameterTypeDescription
nameString链名称
logoUrlString链标志 URL
shortNameString链简称
chainIndexString链唯一标识

请求示例#

shell
curl --location --request GET 'https://www.okx.com/api/v5/waas/wallet/chain/supported-chains`
--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",
    "data": [
        {
            "name": "Ethereum",
            "logoUrl": "http://www.eth.org/eth.png",
            "shortName": "ETH",
            "chainIndex": "1"
        }
    ],
    "msg": ""
}