查询账户#
列举项目下创建过的账户。
请求路径#
GET https://web3.okx.com/api/v5/wallet/account/accounts
请求参数#
| Parameter | Type | Required | Description | 
|---|---|---|---|
| limit | String | No | 每次查询多少条,默认值为 50,最大100 | 
| cursor | String | No | 游标位置,默认为第一个 | 
响应参数#
| Parameter | Type | Description | 
|---|---|---|
| cursor | String | 游标 | 
| accounts | Array | 账户列表 | 
| >accountId | String | 账户唯一标识 | 
| >accountType | String | 账户类型: 0: 钱包账户1:观察账户 | 
请求示例#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/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' \
响应示例#
200
{
    "code": "0",
    "data": [
        {
            "cursor": "50",
            "accounts": [
                {
                    "accountId": "0xdf54b6c6195ea4d948d03bfd818d365cf175cfc2",
                    "accountType": "0"
                },
                {                   
                    "accountId": "0x04ad62387d1f1c7034087bbe4d16163d06fae42d",
                    "accountType": "1"
                }
            ]
        }
    ],
    "msg": "success"
}
