More resources
Create wallet

Create wallet#

Bind walletId and synchronize wallet-related data.

Request URL#

POST https://www.okx.com/api/v5/waas/wallet/create-wallet

Request parameters#

ParameterTypeRequiredDescription
addressesArrayYesArray of addresses
>chainIdStringYesUnique identifier of the chain
>addressStringYesAddress
>walletIdStringYesUnique identifier of the wallet. The generation of walletId uses the UUID v4 algorithm.

Response parameters#

ParameterTypeDescription
walletIdStringUnique identifier of the wallet

Request example#

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

Response example#

200
{
	"code": "0",
	"data": [{
		"walletId": "13886e05-1265-4b79-8ac3-b7ab46217655"
	}],
	"msg": "success"
}