查询某个账户下绑定的地址。
GET https://www.okx.com/api/v5/wallet/account/account-detail
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | Yes | 账户的唯一标识 |
chainIndex | String | No | 链的唯一标识 |
limit | String | No | 每次查询多少条,默认值为 50,最大100 |
cursor | String | No | 游标位置,默认为第一个 |
Parameter | Type | Description |
---|---|---|
cursor | String | 游标 |
addresses | Array | 地址列表 |
>chainIndex | String | 链唯一标识 |
>address | String | 地址 |
>remark | String | 地址备注 |
curl --location --request GET 'https://www.okx.com/api/v5/wallet/account/account-detail?accountId=44486e05-3235-2f8e-5fe2-a8ab46217863' \
--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'
{
"code": "0",
"data": [
{
"cursur": "50",
"addresses": [
{
"chainIndex": "1",
"address":"0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2"
},
{
"chainIndex": "3",
"address":"0x04ad62387d1f1c7034087bbe4d16163d06fae42d"
}
]
}
],
"msg": "success"
}