# Account Balance

The account balance endpoint allows users to query balance-updates and counter-parties by account with a single request. The endpoint will include full account transaction history and counter-party data.

| Field                             | Description                                                                                                                                                                                                    |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account                           | Counterparty account for the transaction that occurred ([Account](/network-data/atlas-overview/accounts.md) as described in the Atlas overview)                                                                |
| account\_creation\_height         | Block height at creation of account                                                                                                                                                                            |
| change                            | Balance change after this update                                                                                                                                                                               |
| previous\_balance                 | Balance of the account prior to the application of this update                                                                                                                                                 |
| new\_balance                      | Balance of the account after this update                                                                                                                                                                       |
| transaction\_sequence\_number     | Order of this update inside the transaction that contains it                                                                                                                                                   |
| n\_debits                         | Number of debits                                                                                                                                                                                               |
| n\_credits                        | Number of credits                                                                                                                                                                                              |
| previous\_debit\_height           | Block height of the last debit                                                                                                                                                                                 |
| previous\_credit\_height          | Block height of the last credit                                                                                                                                                                                |
| previous\_chain\_sequence\_number | Orders balance updates inside a single transaction to distinguish between serial and parallel balance updates.                                                                                                 |
| sub\_account                      | Sub-account value depends on the asset. Bitcoin value is set to be the reference of the unspent output (concatenation of txHash + offset) Other assets will show values like FREE, FROZEN, STAKED, LOCKED, etc |
| stale                             | Indicator if the block is stale                                                                                                                                                                                |
| block\_hash                       | Hash of that block (unique per block)                                                                                                                                                                          |
| height                            | Height of that block (number of confirmed blocks since Genesis block)                                                                                                                                          |
| consensus\_time                   | [Consensus timestamp](https://gitbook-docs.coinmetrics.io/network-data/atlas-overview/pages/V0J8H03s41sifL3Shdk5#timestamps-miner-timestamp-vs.-consensus-timestamp); always increases monotonically           |
| txid                              | Hash of transaction (transaction ID)                                                                                                                                                                           |
| credit                            | Indicator whether the balance update is a credit or debit of the account                                                                                                                                       |
| total\_received                   | Total amount received                                                                                                                                                                                          |
| total\_sent                       | Total amount sent                                                                                                                                                                                              |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook-docs.coinmetrics.io/network-data/atlas-overview/account-balance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
