钱包 API(建设中)
查询当前钱包地址

查询当前钱包地址#

查询当前钱包下有哪些链以及它们的地址。

请求地址#

GET https://www.okx.com/api/v5/waas/wallet/get-addresses

请求参数#

ParameterTypeRequiredDescription
walletIdStringYes钱包唯一标识

响应参数#

ParameterTypeDescription
chainIdString链唯一标识
addressString地址

请求示例#

shell
curl --location --request GET 'https://www.okx.com/api/v5/waas/wallet/get-addresses?walletId=13886e05-1265-4b79-8ac3-b7ab46211001' \
--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": "success",
    "data": [
        {
            "chainId": "1",
            "address": "0x238193be9e80e68eace3588b45d8cf4a7eae0fa3"
        },
        {
            "chainId": "66",
            "address": "0x238193be9e80e68eace3588b45d8cf4a7eae0fa3"
        },
        {
            "chainId": "56",
            "address": "0x238193be9e80e68eace3588b45d8cf4a7eae0fa3"
        },
        {
            "chainId": "137",
            "address": "0x238193be9e80e68eace3588b45d8cf4a7eae0fa3"
        }
    ]
}