Optional
accumulatedThe accumulated seed used for randomness in block generation.
The hash of the block's body, used to verify the block's contents.
The current gas price for transactions within this block.
Optional
eraThe era end details, if available, for this block's era.
The era ID in which the block was created.
The height of the block in the blockchain.
Private
Optional
originPrivate
Optional
originThe hash of the parent block.
The proposer who created this block.
Optional
protocolThe protocol version used for this block.
A random bit used for consensus.
The hash of the state root.
The timestamp indicating when the block was created.
Retrieves the version 1 block header, if available.
The version 1 block header, or undefined
if not available.
Retrieves the version 2 block header, if available.
The version 2 block header, or undefined
if not available.
Static
newCreates a new BlockHeader
instance from a version 1 block header.
A new BlockHeader
instance.
The version 1 block header.
Static
newCreates a new BlockHeader
instance from a version 2 block header.
A new BlockHeader
instance.
The version 2 block header.
Generated using TypeDoc
Represents a block header that can be either version 1 or version 2, with various metadata about the block.