Skip to content

Interface: PlainMacroBlock

JSON-compatible and human-readable format of blocks.

Extends

Properties

batch

batch: number

The batch number that the block is in.

Inherited from

PlainBlockCommonFields.batch

Defined in

@nimiq/core/types/wasm/web.d.ts:515


bodyHash

bodyHash: string

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

Inherited from

PlainBlockCommonFields.bodyHash

Defined in

@nimiq/core/types/wasm/web.d.ts:556


epoch

epoch: number

The epoch number that the block is in.

Inherited from

PlainBlockCommonFields.epoch

Defined in

@nimiq/core/types/wasm/web.d.ts:519


extraData

extraData: string

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.extraData

Defined in

@nimiq/core/types/wasm/web.d.ts:548


hash

hash: string

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

Inherited from

PlainBlockCommonFields.hash

Defined in

@nimiq/core/types/wasm/web.d.ts:503


height

height: number

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

Inherited from

PlainBlockCommonFields.height

Defined in

@nimiq/core/types/wasm/web.d.ts:511


historyHash

historyHash: string

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

Inherited from

PlainBlockCommonFields.historyHash

Defined in

@nimiq/core/types/wasm/web.d.ts:560


isElectionBlock

isElectionBlock: boolean

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

Defined in

@nimiq/core/types/wasm/web.d.ts:567


network

network: string

The network that this block is valid for.

Inherited from

PlainBlockCommonFields.network

Defined in

@nimiq/core/types/wasm/web.d.ts:527


prevElectionHash

prevElectionHash: string

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

Defined in

@nimiq/core/types/wasm/web.d.ts:575


prevHash

prevHash: string

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

Inherited from

PlainBlockCommonFields.prevHash

Defined in

@nimiq/core/types/wasm/web.d.ts:535


round

round: number

The round number this block was proposed in.

Defined in

@nimiq/core/types/wasm/web.d.ts:571


seed

seed: string

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.seed

Defined in

@nimiq/core/types/wasm/web.d.ts:540


size

size: number

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

Inherited from

PlainBlockCommonFields.size

Defined in

@nimiq/core/types/wasm/web.d.ts:507


stateHash

stateHash: string

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

Inherited from

PlainBlockCommonFields.stateHash

Defined in

@nimiq/core/types/wasm/web.d.ts:552


timestamp

timestamp: number

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

Inherited from

PlainBlockCommonFields.timestamp

Defined in

@nimiq/core/types/wasm/web.d.ts:523


version

version: number

The protocol version that this block is valid for.

Inherited from

PlainBlockCommonFields.version

Defined in

@nimiq/core/types/wasm/web.d.ts:531