Constructs a new Block instance.
The unique hash of the block.
The height of the block in the blockchain.
The hash of the state root for the block.
The hash of the block that switched the state, if available.
The hash of the parent block.
The era ID in which the block was created.
The timestamp of the block creation.
The accumulated seed for randomness in the block.
A random bit used for consensus.
The current gas price for transactions in the block.
The proposer of the block.
The protocol version of the block.
The era end details for the block's era, if available.
The list of transactions included in the block.
The list of rewarded signatures.
The list of proofs associated with the block.
Optional originBlockV1: BlockV1The origin block in V1 format, if available.
Optional originBlockV2: BlockV2The origin block in V2 format, if available.
Optional accumulatedThe accumulated seed for randomness in the block generation.
The current gas price for transactions included in the block.
Optional eraThe era end details, if available, for the block's era.
The era ID in which this block was created.
The unique hash of the block.
The height of the block in the blockchain.
The hash of the block that switched the current state, if available.
This can be null if not applicable.
Optional originThe origin block in V1 format, if available.
Optional originThe origin block in V2 format, if available.
The hash of the parent block in the blockchain.
A list of proofs associated with this block.
The proposer who created this block.
Optional protocolThe protocol version used for this block.
A random bit used for proof-of-stake consensus.
A list of signature IDs that were rewarded in this block.
The hash of the state root associated with the block.
The timestamp indicating when the block was created.
The list of transactions included in this block.
Static newStatic newCreates a new Block instance from a BlockWrapper object, which may contain either V1 or V2 block format.
A new Block instance based on the provided blockWrapper and proofs.
Will throw an error if the blockWrapper does not contain a valid blockV1 or blockV2.
The BlockWrapper containing either blockV1 or blockV2.
The list of proofs associated with the block.
Generated using TypeDoc
Represents a block in the blockchain containing metadata, transactions, and proof. A block includes information like the hash, height, parent block, transactions, and more.