更新账户#
更改某一钱包账户下绑定的地址。
请求路径#
POST https://www.okx.com/api/v5/wallet/account/update-wallet-account
请求参数#
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | Yes | 账户的唯一标识 |
updateType | String | Yes | add : 添加 delete : 删除 |
addresses | Array | Yes | 地址列表。(单次调用最多50个地址) |
>chainIndex | String | Yes | 链唯一标识 |
>address | String | Yes | 地址 |
响应参数#
无
请求示例#
shell
curl --location --request POST 'https://www.okx.com/api/v5/wallet/account/update-wallet-account' \
--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' \
--data-raw '{
"accountId": "13886e05-1265-4b79-8ac3-b7ab46217655",
"updateType": "add",
"addresses": [
{
"chainIndex":"1",
"address":"0x561815e02bac6128bbbbc551005ddfd92a5c24db",
},{
"chainIndex":"0",
"address":"bc1p939endmmt6pvz7ukeywpfsazz57cc4vdu3d0qerz6crhgrtmerfssls5wy",
}
],
}'
响应示例#
200
{
"code": "0",
"data": [],
"msg": "success"
}