More resources
Add wallet address

Add wallet address#

This interface allows you to add a binding address under the specified wallet. For example, if a single-chain wallet is created and expanded to a multi-chain wallet, another chain address is added to Waas.

Request URL#

POST https://www.okx.com/api/v5/waas/wallet/sync-address-incrementally

Request parameters#

ParameterTypeRequiredDescription
walletIdStringYesUnique identifier of the wallet
addressesArrayYesAdd Array of addresses
>chainIdStringYesUnique identifier of the chain
>addressStringYesAdd single Address

Response parameters#

None

Request example#

shell
curl --location --request POST 'https://www.okx.com/api/v5/waas/wallet/sync-address' \
--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 '{
  "walletId": "13886e05-1265-4b79-8ac3-b7ab46217655",
  "addresses": [
    {
      "chainId": "5"
      "address": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2"
    },
    {
      "chainId": "7"
      "address": "0xdf444b6c6195ea4d948d04cfd818d365cf175cee3"
    }
  ]
}'

Response example#

200
{
  "code": "0",
  "data": [],
  "msg": "success"
}