# BlockOffset

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

Either a block hash or a block height.

```
input BlockOffset {

  hash: HexEncoded

  height: Int

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`BlockOffset.hash`](#hash) ● [`HexEncoded`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) scalar[​](#hash "Direct link to hash")

A hex-encoded block hash.

#### [`BlockOffset.height`](#height) ● [`Int`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) scalar[​](#height "Direct link to height")

A block height.

### Member Of[​](#member-of "Direct link to Member Of")

[`block`](https://docs.midnight.network/api-reference/midnight-indexer/operations/queries/block.md) query ● [`blocks`](https://docs.midnight.network/api-reference/midnight-indexer/operations/subscriptions/blocks.md) subscription ● [`ContractActionOffset`](https://docs.midnight.network/api-reference/midnight-indexer/types/inputs/contract-action-offset.md) input ● [`contractActions`](https://docs.midnight.network/api-reference/midnight-indexer/operations/subscriptions/contract-actions.md) subscription
