Wallet API
Query Wallet List

Query Wallet List#

List wallet accounts created under the project.

Request Path#

GET https://www.okx.com/api/v5/waas/wallet/account/accounts

Request Parameters#

ParameterTypeRequiredDescription
limitStringNoNumber of items to query each time, default is 50, maximum is 100
cursorStringNoCursor position, defaults to the first one

Response Parameters#

ParameterTypeDescription
cursorStringCursor
accountsArrayList of wallet accounts
>accountIdStringUnique identifier of the wallet account
>accountTypeString0: User wallet account
1: Watch-only wallet account

Request Example#

shell
curl --location --request GET 'https://www.okx.com/api/v5/waas/wallet/account/accounts' \
--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' \

Response Example#

200
{
    "code": "0",
    "data": [
        {
            "cursor": "50",
            "accounts": [
                {
                    "accountId": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
                    "accountType": "0"
                },
                {                   
                    "accountId": "0x04ad62387d1f1c7034087bbe4d16163d06fae42d",
                    "accountType": "1"
                }
            ]
        }
    ],
    "msg": "success"
}