Class BlockHeader

Represents a block header that can be either version 1 or version 2, with various metadata about the block.

Hierarchy

  • BlockHeader

Constructors

Properties

accumulatedSeed?: Hash

The accumulated seed used for randomness in block generation.

bodyHash: Hash

The hash of the block's body, used to verify the block's contents.

currentGasPrice: number

The current gas price for transactions within this block.

eraEnd?: null | EraEnd

The era end details, if available, for this block's era.

eraID: number

The era ID in which the block was created.

height: number

The height of the block in the blockchain.

originBlockHeaderV1?: BlockHeaderV1
originBlockHeaderV2?: BlockHeaderV2
parentHash: Hash

The hash of the parent block.

proposer: Proposer

The proposer who created this block.

protocolVersion?: string

The protocol version used for this block.

randomBit: boolean

A random bit used for consensus.

stateRootHash: Hash

The hash of the state root.

timestamp: Timestamp

The timestamp indicating when the block was created.

Methods

Generated using TypeDoc