> For the complete documentation index, see [llms.txt](https://gitbook-docs.coinmetrics.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook-docs.coinmetrics.io/network-data/atlas-overview/account-balance.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
