Skip to content

Interface: PlainMacroBlock

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

JSON-compatible and human-readable format of blocks.

Extends

Properties

batch

batch: number

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

The batch number that the block is in.

Inherited from

PlainBlockCommonFields.batch


bodyHash

bodyHash: string

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

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

Inherited from

PlainBlockCommonFields.bodyHash


epoch

epoch: number

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

The epoch number that the block is in.

Inherited from

PlainBlockCommonFields.epoch


extraData

extraData: string

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

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


hash

hash: string

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

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

Inherited from

PlainBlockCommonFields.hash


height

height: number

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

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

Inherited from

PlainBlockCommonFields.height


historyHash

historyHash: string

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

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

Inherited from

PlainBlockCommonFields.historyHash


isElectionBlock

isElectionBlock: boolean

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

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


network

network: string

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

The network that this block is valid for.

Inherited from

PlainBlockCommonFields.network


prevElectionHash

prevElectionHash: string

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

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:67

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

Inherited from

PlainBlockCommonFields.prevHash


round

round: number

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

The round number this block was proposed in.


seed

seed: string

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

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


size

size: number

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

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

Inherited from

PlainBlockCommonFields.size


stateHash

stateHash: string

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

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


timestamp

timestamp: number

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

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

Inherited from

PlainBlockCommonFields.timestamp


version

version: number

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

The protocol version that this block is valid for.

Inherited from

PlainBlockCommonFields.version