---
title: "List of sub-accounts"
method: GET
path: "/blockchain-v2/{asset}/sub-accounts"
tags: ["List of blockchain entities v2"]
---

# List of sub-accounts

`GET /blockchain-v2/{asset}/sub-accounts`

## Request

- Base URL: `https://api.coinmetrics.io/v4`
- URL: `https://api.coinmetrics.io/v4/blockchain-v2/{asset}/sub-accounts`
- Auth: API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/docs/blockchain-v2/:asset/sub-accounts/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of blockchain sub-accounts.<br/> Results are ordered by tuple `(creation_chain_sequence_number, account)`.<br/> To fetch the next page of results use `next_page_url` JSON response field.

## Path parameters

- `asset` string, required

## Query parameters

- `accounts` string[]
- `start_time` string
- `end_time` string
- `start_height` integer
- `end_height` integer
- `start_chain_sequence_number` integer
- `end_chain_sequence_number` integer
- `start_inclusive` boolean
- `end_inclusive` boolean
- `timezone` string
- `page_size` integer
- `paging_from` 'start' | 'end', PagingFrom
- `pretty` boolean
- `next_page_token` string

## Response `200`

Blockchain sub-accounts.

- BlockchainSubAccountsResponseV2: Blockchain sub-accounts response.
  - `data` object[], required
    - `sub_account` string, required: Sub-account id.
    - `account` string, required: Account id.
    - `type` string, required: Account type. The possible values are: `UTXO`, `VIRTUAL`, `ACCOUNT`.
    - `creation_height` string, required: Height of the block.
    - `creation_time` string, required: The time in ISO 8601 date-time format. Always with nanoseconds precision.
    - `creation_chain_sequence_number` string, required: Chain sequence number.
    - `creation_block_hash` string, required: Hash of the block.
    - `balance` string: Sub-account latest balance.
  - `next_page_token` string: Token of the next page results for a given request.
  - `next_page_url` string: URL of the next page results for a given request.

## Other responses

- `401`: Requested resource requires authorization.
- `403`: Requested resource is not available with supplied credentials.

---

[API](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4.md) - [All operations](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/coinmetrics/apis/coin-metrics-api-v4/revisions/774268c0a4fe?raw)
