# TzKT Balance History

> TzKT Balance History is a paid API for AI agents from x402.tzkt.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns the historical balance snapshots for a given Tezos account address over time, sampled at configurable block intervals.

## Facts

- Endpoint: GET https://x402.tzkt.io/v1/accounts/%7Baddress%7D/balance_history
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tzkt-balance-history-43ef6544
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y7mjgtsw7xogp9_fXjj7L

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tzkt-balance-history-43ef6544
```

Example prompt: Pull the balance history for Tezos account tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb, sampled every 1000 blocks, showing the last 50 data points in descending order with balances quoted in USD.

## When to prefer this

Use this endpoint when you need time-series balance data for a specific Tezos account — ideal for charting portfolio growth, auditing balance changes, or monitoring large wallets over time. It is preferable over transaction-level endpoints when you want sampled snapshots rather than individual operation details. It suits analytics and visualization pipelines that need evenly spaced balance data points rather than raw operation logs.

## Known failure modes

- Invalid or non-existent Tezos address returns empty array or 400 error
- Step value of 0 or negative integers cause a validation error
- Limit exceeding 10000 returns a 400 bad request
- Address format errors (wrong prefix or length) return 400
- Payment failure via x402 returns 402 Payment Required, blocking data access
- Offset beyond total records returns an empty array

## How this service works

TzKT is a comprehensive Tezos blockchain indexer API. Access blocks, operations, accounts, contracts, bigmaps, delegates, tokens and network stats through a fast REST API. No signup or API key required.

## Output

An array of objects, each representing a balance snapshot at a particular point in time (block level), including the account's balance and optionally the balance converted to a requested quote currency (e.g. USD, EUR, BTC). The array is ordered and paginated according to the sort, offset, and limit parameters supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort": {
   "type": "string",
   "description": "Sorting direction"
  },
  "step": {
   "type": "integer",
   "description": "Step size in blocks for sampling"
  },
  "limit": {
   "type": "integer",
   "description": "Max items to return (1-10000)"
  },
  "quote": {
   "type": "string",
   "description": "Quote currency for balance values"
  },
  "offset": {
   "type": "integer",
   "description": "Pagination offset"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "array",
 "items": {
  "type": "object"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tzkt-balance-history-43ef6544/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tzkt.io](https://www.zero.xyz/host/x402.tzkt.io/llms.txt)
