Class BlockHeader

Represents the metadata and state of a block.

For more information, refer to: https://github.com/algorand/go-algorand/blob/master/data/bookkeeping/block.go

Implements

Constructors

Properties

bonus: bigint

Bonus is the bonus incentive to be paid for proposing this block. It begins as a consensus parameter value, and decays periodically.

branch: Uint8Array

Previous block hash

feesCollected: bigint

FeesCollected is the sum of all fees paid by transactions in this block. Populated if proto.EnableMining.

genesisHash: Uint8Array

Genesis hash to which this block belongs.

genesisID: string

Genesis ID to which this block belongs.

participationUpdates: ParticipationUpdates
proposer: Address

Proposer is the proposer of this block. Like the Seed, agreement adds this after the block is assembled by the transaction pool, so that the same block can be prepared for multiple participating accounts in the same node. Populated if proto.Payouts.Enabled

proposerPayout: bigint

ProposerPayout is the amount that should be moved from the FeeSink to the Proposer at the start of the next block. It is basically the bonus + the payouts percent of FeesCollected, but may be zero'd by proposer ineligibility.

rewardState: RewardState
round: bigint

Round number

seed: Uint8Array

Sortition seed

stateproofTracking: Map<number, StateProofTrackingData>

StateProofTracking tracks the status of the state proofs, potentially for multiple types of ASPs (Algorand's State Proofs).

timestamp: bigint

Timestamp in seconds since epoch

txnCommitments: TxnCommitments
txnCounter: bigint

TxnCounter is the number of the next transaction that will be committed after this block. Genesis blocks can start at either 0 or 1000, depending on a consensus parameter (AppForbidLowResources).

upgradeState: UpgradeState
upgradeVote: UpgradeVote
encodingSchema: NamedMapSchema = ...

Methods

  • Extract the encoding data for this object. This data, after being prepared by the encoding Schema, can be encoded to msgpack or JSON.

    Returns Map<string, unknown>

Generated using TypeDoc