Class BlockHeaderV1

Represents the header of a version 1 block in the blockchain. The header contains metadata about the block, such as its height, parent hash, protocol version, and timestamps.

Hierarchy

  • BlockHeaderV1

Constructors

Properties

accumulatedSeed?: Hash

The accumulated seed used for randomness in block generation. This seed is generated from previous blocks and influences the consensus.

bodyHash: Hash

The hash of the block's body, which contains the transactions and other block data. This is used to verify the integrity of the block's contents.

eraEnd?: EraEndV1

The era end details for this block's era, if available. The eraEnd may include information about the transition from one era to another.

eraID: number

The era ID in which this block was created. The era ID represents the block's position within a specific era in the blockchain.

height: number

The height of the block in the blockchain. The block height indicates its position relative to the first block in the chain (genesis block).

parentHash: Hash

The hash of the parent block, linking this block to its predecessor in the chain. The parent hash is used to verify the continuity of the blockchain.

protocolVersion?: string

The protocol version used for this block, indicating the version of the consensus rules.

randomBit: boolean

A random bit used for consensus, which may play a role in the block's selection or generation.

stateRootHash: Hash

The hash of the state root, representing the state of the blockchain after this block is applied. The state root hash is used to verify the consistency of the blockchain's state.

timestamp: Timestamp

The timestamp indicating when the block was created. This timestamp helps to determine the block's position in time within the blockchain.

Generated using TypeDoc