# blocks

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

Subscribe to blocks starting at the given offset or at the latest block if the offset is omitted.

```
blocks(

  offset: BlockOffset

): Block!
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`blocks.offset`](#offset) ● [`BlockOffset`](https://docs.midnight.network/api-reference/midnight-indexer/types/inputs/block-offset.md) input[​](#offset "Direct link to offset")

### Type[​](#type "Direct link to Type")

#### [`Block`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/block.md) object[​](#block- "Direct link to block-")

A block with its relevant data.
