# block

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

Find a block for the given optional offset; if not present, the latest block is returned.

```
block(

  offset: BlockOffset

): Block
```

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

#### [`block.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.
