Class BlockHeaderV2

Represents the header of a version 2 block in the blockchain. Contains metadata such as the block's height, parent hash, timestamp, gas price, and more.

Hierarchy

  • BlockHeaderV2

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 data. This is used to verify the integrity of the block's contents.

currentGasPrice: number

The current gas price for transactions within this block.

eraEnd?: EraEndV2

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

eraID: number

The era ID in which the block was created, indicating its position within a blockchain era.

height: number

The height of the block in the blockchain, representing its position in the chain.

lastSwitchBlockHash: Hash

The hash of the block that switched the state, marking the end of an era or other significant event.

parentHash: Hash

The hash of the parent block, linking this block to its predecessor in the chain.

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, which may play a role in block selection or generation.

stateRootHash: Hash

The hash of the state root, representing the state of the blockchain after this block is applied.

timestamp: Timestamp

The timestamp when the block was created.

Generated using TypeDoc