# TzKT Blocks Count

> TzKT Blocks Count 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-14).

Returns the total number of blocks on the Tezos blockchain

## Facts

- Endpoint: GET https://x402.tzkt.io/v1/blocks/count
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tzkt-blocks-count-3c3ac08c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T0iUqExpl0QQxw2y8Yopp

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-blocks-count-3c3ac08c
```

Example prompt: How many blocks have been produced on the Tezos blockchain so far? Give me the current total block count.

## When to prefer this

Use this endpoint when you need a simple, fast scalar count of total Tezos blocks without needing full block details or pagination. It is ideal for dashboards, sync checks, or chain health monitoring where only the block height integer is needed. Prefer this over fetching full block lists when you only need the count.

## Known failure modes

- Network timeout or service unavailability returning a 5xx error
- Invalid quote currency parameter resulting in a 400 bad request
- Payment failure via x402 protocol preventing access to the endpoint

## 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

A single integer representing the total number of blocks that have been produced on the Tezos blockchain up to the current moment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "quote": {
   "enum": [
    "Btc",
    "Eur",
    "Usd",
    "Cny",
    "Jpy",
    "Krw",
    "Eth",
    "Gbp"
   ],
   "type": "string",
   "description": "Quote currency for balance fields"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "integer"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tzkt-blocks-count-3c3ac08c/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)
