---
title: "Get aggregate blockchain statistics."
method: GET
path: "/api/v1/blockstats"
tags: ["block"]
---

# Get aggregate blockchain statistics.

`GET /api/v1/blockstats`

Returns block count, transaction count, average sizes, and timestamps.

## Response `200`

Block statistics

- BlockStats
  - `avg_block_size` number, double
  - `avg_tx_count_per_block` number, double
  - `block_count` integer
  - `chain_work` integer[]
  - `first_block_time` integer
  - `last_block_time` integer
  - `max_height` integer
  - `tx_count` integer

## Other responses

- `500` — Error response

---

[API](https://skmtc.net/bsv-blockchain/apis/teranode-asset-service-api.md) · [All operations](https://skmtc.net/bsv-blockchain/apis/teranode-asset-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bsv-blockchain/teranode-asset-service-api/versions/5bc9be41e029/schema)
