---
title: "Returns all subaccounts"
method: GET
path: "/v1/subaccount/all"
tags: ["Subaccount"]
---

# Returns all subaccounts

`GET /v1/subaccount/all`

## Query parameters

- `order` 'desc'
- `limit` integer
- `cursor` string
- `orderBy` 'createdAt'

## Response `200`

- PageOfSubaccountDtos
  - `data` SubaccountDto[], required — Array of subaccount objects
    - `account` string, hex, required — Address of the account which registered the subaccount (non-checksummed)
    - `createdAt` integer, required — Subaccount creation timestamp (ms since Unix Epoch)
    - `createdBlockNumber` string, required — Block number this subaccount was created on
    - `id` string, uuid, required — Id representing the registered subaccount
    - `name` string, hex, required — Bytes32 encoded subaccount name (0x prefix, zero padded)
    - `registeredBlockNumber` string — Block number this subaccount was registered on
  - `hasNext` boolean, required — Whether there are more objects to paginate through
  - `nextCursor` string — Pointer to the next page in pagination dataset

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/ethereal/apis/ethereal-exchange-api.md) · [All operations](https://skmtc.net/ethereal/apis/ethereal-exchange-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ethereal/ethereal-exchange-api/revisions/6e6f8dad92bf/schema)
