> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dune.com/llms.txt
> Use this file to discover all available pages before exploring further.

# flow.blocks

> Flow block data — block height, timestamp, and collection guarantees.

## Table description

The `flow.blocks` table contains information about blocks in the flow blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.

## Column Descriptions

<table><thead><tr><th>Column</th><th>Type</th><th>Description</th></tr></thead>
<tbody><tr><td>`time`</td><td>`timestamp`</td><td>The time when the block was mined</td></tr>
<tr><td>`number`</td><td>`bigint`</td><td>The block number (height)</td></tr>
<tr><td>`gas_limit`</td><td>`decimal`</td><td>Maximum gas allowed in the block</td></tr>
<tr><td>`gas_used`</td><td>`decimal`</td><td>Total gas used by all transactions in the block</td></tr>
<tr><td>`difficulty`</td><td>`bigint`</td><td>Mining difficulty of the block</td></tr>
<tr><td>`total_difficulty`</td><td>`decimal`</td><td>Cumulative difficulty of the chain up to this block</td></tr>
<tr><td>`size`</td><td>`bigint`</td><td>Size of the block in bytes</td></tr>
<tr><td>`base_fee_per_gas`</td><td>`bigint`</td><td>Base fee per gas unit (EIP-1559)</td></tr>
<tr><td>`hash`</td><td>`varbinary`</td><td>Hash of the block</td></tr>
<tr><td>`parent_hash`</td><td>`varbinary`</td><td>Hash of the parent block</td></tr>
<tr><td>`miner`</td><td>`varbinary`</td><td>Address of the miner/validator</td></tr>
<tr><td>`nonce`</td><td>`varbinary`</td><td>Nonce used in mining the block</td></tr>
<tr><td>`date`</td><td>`date`</td><td>Date of the block (UTC)</td></tr>
<tr><td>`blob_gas_used`</td><td>`bigint`</td><td>Total blob gas used in the block (EIP-4844)</td></tr>
<tr><td>`excess_blob_gas`</td><td>`bigint`</td><td>Excess blob gas for fee calculation (EIP-4844)</td></tr>
<tr><td>`parent_beacon_block_root`</td><td>`varbinary`</td><td>Root of the parent beacon block</td></tr></tbody></table>

## Table Sample

[https://dune.com/embeds/3419983/5785629?table\_schema\_t6f0df=flow\&table\_name\_t6f0df=blocks](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=flow\&table_name_t6f0df=blocks)

## Examples

### Show the most recent blocks

<pre>`SELECT
    number,
    hash, 
    size,
    gas_used
  FROM flow.blocks
  ORDER BY number DESC
  LIMIT 10`</pre>

### Show the number of blocks mined each day

<pre>`SELECT
    date_trunc('day', time) AS day,
    count(distinct number)
  FROM flow.blocks
  GROUP BY day
  ORDER BY day DESC`</pre>

### Show the number of transactions in each block

<pre>`SELECT
    number,
    count(*)
  FROM flow.blocks
  GROUP BY 1 
  LIMIT 10`</pre>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.