---
title: "Interface: PlainMacroBlock"
canonical_url: "https://nimiq.dev/web-client/reference/interfaces/plainmacroblock"
---
# Interface: PlainMacroBlock

[@nimiq/core](../globals) / PlainMacroBlock

Defined in: @nimiq/core/types/wasm/web.d.ts:613

JSON-compatible and human-readable format of blocks.

## Extends

- [`PlainBlockCommonFields`](PlainBlockCommonFields)

## Properties

### batch

> **batch**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:277

The batch number that the block is in.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`batch`](PlainBlockCommonFields#batch)

---

### bodyHash

> **bodyHash**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:318

The root of the Merkle tree of the body, in HEX format. It acts as a commitment to the body.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`bodyHash`](PlainBlockCommonFields#bodyhash)

---

### epoch

> **epoch**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:281

The epoch number that the block is in.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`epoch`](PlainBlockCommonFields#epoch)

---

### extraData

> **extraData**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:310

The extra data of the block, in HEX format. Up to 32 raw bytes.

In the genesis block, it encodes the initial supply as a big-endian `u64`.

No planned use otherwise.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`extraData`](PlainBlockCommonFields#extradata)

---

### hash

> **hash**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:265

The block's unique hash, used as its identifier, in HEX format.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`hash`](PlainBlockCommonFields#hash)

---

### height

> **height**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:273

The block's block height, also called block number.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`height`](PlainBlockCommonFields#height)

---

### historyHash

> **historyHash**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:322

A Merkle root over all of the transactions that happened in the current epoch, in HEX format.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`historyHash`](PlainBlockCommonFields#historyhash)

---

### isElectionBlock

> **isElectionBlock**: `boolean`

Defined in: @nimiq/core/types/wasm/web.d.ts:617

If true, this macro block is an election block finalizing an epoch.

---

### network

> **network**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:289

The network that this block is valid for.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`network`](PlainBlockCommonFields#network)

---

### prevElectionHash

> **prevElectionHash**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:625

The hash of the header of the preceding election macro block, in HEX format.

---

### prevHash

> **prevHash**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:297

The hash of the header of the immediately preceding block (either micro or macro), in HEX format.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`prevHash`](PlainBlockCommonFields#prevhash)

---

### round

> **round**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:621

The round number this block was proposed in.

---

### seed

> **seed**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:302

The seed of the block. This is the BLS signature of the seed of the immediately preceding
block (either micro or macro) using the validator key of the block producer.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`seed`](PlainBlockCommonFields#seed)

---

### size

> **size**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:269

The block's on-chain size, in bytes.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`size`](PlainBlockCommonFields#size)

---

### stateHash

> **stateHash**: `string`

Defined in: @nimiq/core/types/wasm/web.d.ts:314

The root of the Merkle tree of the blockchain state, in HEX format. It acts as a commitment to the state.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`stateHash`](PlainBlockCommonFields#statehash)

---

### timestamp

> **timestamp**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:285

The timestamp of the block. It follows the Unix time and has millisecond precision.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`timestamp`](PlainBlockCommonFields#timestamp)

---

### version

> **version**: `number`

Defined in: @nimiq/core/types/wasm/web.d.ts:293

The protocol version that this block is valid for.

#### Inherited from

[`PlainBlockCommonFields`](PlainBlockCommonFields).[`version`](PlainBlockCommonFields#version)


## Sitemap

See the full [sitemap](https://nimiq.dev/sitemap.md) for all pages.
