---
title: Blocks
slug: blocks
docTags: 
createdAt: 2024-09-23T11:51:59.677Z
---

## blocks

Access to all TON blocks data.

In our database we store these block fields: [Blocks](docId\:jcLj5YEinsj07wc8c5QK6)&#x20;

Using this method you can filter data by any of these fields and also request any of thedse fields. In addition you can apply [Filters](docId\:rHVeu_Zku7nuX31BZcvGH), [Aggregations](docId\:g2frc13tQ_lBipzcEkBAc) and [Pagination](docId\:StS2MBzwWCthj9OnU9RUB).

Example:

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  blocks(workchain: -1, page_size: 3) {\n    seqno\n    gen_utime__utc_human\n    shards_seqno\n    shards_shard\n  }\n}\n"
}
```
:::

## blocksCount

This is simple method returning number of all blocks in blockchain

:::GraphiQL
```json
{
  "endpoint": "https://dton.io/graphql/",
  "query": "{\n  blocksCount\n}"
}
```
:::

