# Block

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

A block with its relevant data.

```
type Block {

  hash: HexEncoded!

  height: Int!

  protocolVersion: Int!

  timestamp: Int!

  author: HexEncoded

  zswapMerkleTreeRoot: HexEncoded!

  ledgerParameters: HexEncoded!

  zswapEndIndex: Int!

  dustCommitmentEndIndex: Int!

  dustGenerationEndIndex: Int!

  parent: Block

  transactions: [Transaction!]!

  systemParameters: SystemParameters!

  dustCommitmentMerkleTreeRoot: HexEncoded

  dustGenerationMerkleTreeRoot: HexEncoded

}
```

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

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

The block hash.

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

The block height.

#### [`Block.protocolVersion`](#protocol-version) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#protocol-version "Direct link to protocol-version")

The protocol version.

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

The UNIX timestamp.

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

The hex-encoded block author.

#### [`Block.zswapMerkleTreeRoot`](#zswap-merkle-tree-root) ● [`HexEncoded!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) non-null scalar[​](#zswap-merkle-tree-root "Direct link to zswap-merkle-tree-root")

The hex-encoded serialized zswap state Merkle tree root.

#### [`Block.ledgerParameters`](#ledger-parameters) ● [`HexEncoded!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) non-null scalar[​](#ledger-parameters "Direct link to ledger-parameters")

The hex-encoded ledger parameters for this block.

#### [`Block.zswapEndIndex`](#zswap-end-index) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#zswap-end-index "Direct link to zswap-end-index")

The zswap commitment tree end index at this block; exclusive, i.e. the next free index.

#### [`Block.dustCommitmentEndIndex`](#dust-commitment-end-index) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#dust-commitment-end-index "Direct link to dust-commitment-end-index")

The dust commitment tree end index at this block; exclusive, i.e. the next free index.

#### [`Block.dustGenerationEndIndex`](#dust-generation-end-index) ● [`Int!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/int.md) non-null scalar[​](#dust-generation-end-index "Direct link to dust-generation-end-index")

The dust generation tree end index at this block; exclusive, i.e. the next free index.

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

The parent of this block.

#### [`Block.transactions`](#transactions) ● [`[Transaction!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/transaction.md) non-null interface[​](#transactions "Direct link to transactions")

The transactions within this block.

#### [`Block.systemParameters`](#system-parameters) ● [`SystemParameters!`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/system-parameters.md) non-null object[​](#system-parameters "Direct link to system-parameters")

The system parameters (governance) at this block height.

#### [`Block.dustCommitmentMerkleTreeRoot`](#dust-commitment-merkle-tree-root) ● [`HexEncoded`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) scalar[​](#dust-commitment-merkle-tree-root "Direct link to dust-commitment-merkle-tree-root")

The hex-encoded dust commitment Merkle tree root at the latest indexed state.

#### [`Block.dustGenerationMerkleTreeRoot`](#dust-generation-merkle-tree-root) ● [`HexEncoded`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) scalar[​](#dust-generation-merkle-tree-root "Direct link to dust-generation-merkle-tree-root")

The hex-encoded dust generation Merkle tree root at the latest indexed state.

### Returned By[​](#returned-by "Direct link to Returned By")

[`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

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

[`Block`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/block.md) object ● [`RegularTransaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/regular-transaction.md) object ● [`SystemTransaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/system-transaction.md) object ● [`Transaction`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/transaction.md) interface
