Struct BlockHeader
Assembly: cs.temp.dll.dll
Syntax
public struct BlockHeader : IEquatable<BlockHeader>, IBlockRewards, IBlockUpgradeState, IBlockUpgradeVote, ITxnCommitments
Fields
Cc
Declaration
Field Value
GenesisHash
[gh] hash to which this block belongs.
Declaration
public GenesisHash GenesisHash
Field Value
GenesisId
[gen] ID to which this block belongs.
Declaration
public FixedString64Bytes GenesisId
Field Value
Type |
Description |
FixedString64Bytes |
|
PreviousBlockHash
[prev] Previous block hash.
Declaration
public BlockHash PreviousBlockHash
Field Value
Rewards
Declaration
public BlockRewards Rewards
Field Value
Round
[rnd] Current round on which this block was appended to the chain.
Declaration
Field Value
Seed
Declaration
public Sha512_256_Hash Seed
Field Value
Type |
Description |
Sha512_256_Hash |
|
StateProofTracking
StateProofTracking tracks the status of the state proofs, potentially
for multiple types of ASPs (Algorand's State Proofs).
Declaration
public StateProofTrackingDataMap StateProofTracking
Field Value
Timestamp
[ts] Block creation timestamp in seconds since epoch
Declaration
Field Value
TransactionCounter
[tc] TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced.
Declaration
public ulong TransactionCounter
Field Value
Remarks
Transactions
[txns] list of transactions corresponding to a given round.
Declaration
public BlockTransaction[] Transactions
Field Value
UpgradeState
Declaration
public BlockUpgradeState UpgradeState
Field Value
UpgradeVote
Declaration
public BlockUpgradeVote UpgradeVote
Field Value
Properties
CurrentProtocol
[proto] The current protocol version.
Declaration
public FixedString128Bytes CurrentProtocol { get; set; }
Property Value
Type |
Description |
FixedString128Bytes |
|
FeeSink
[fees] accepts transaction fees, it can only spend to the incentive pool.
Declaration
public Address FeeSink { get; set; }
Property Value
NativeSha512_256Commitment
Root of transaction merkle tree using SHA512_256 hash function.
This commitment is computed based on the PaysetCommit type specified in the block's consensus protocol.
Declaration
public Digest NativeSha512_256Commitment { get; set; }
Property Value
NextProtocol
[nextproto] The next proposed protocol version.
Declaration
public FixedString128Bytes NextProtocol { get; set; }
Property Value
Type |
Description |
FixedString128Bytes |
|
NextProtocolApprovals
[nextyes] Number of blocks which approved the protocol upgrade.
Declaration
public ulong NextProtocolApprovals { get; set; }
Property Value
NextProtocolSwitchOn
[nextswitch] Round on which the protocol upgrade will take effect.
Declaration
public ulong NextProtocolSwitchOn { get; set; }
Property Value
NextProtocolVoteBefore
[nextbefore] Deadline round for this protocol upgrade (No votes will be consider after this round).
Declaration
public ulong NextProtocolVoteBefore { get; set; }
Property Value
RewardsCalculationRound
[rwcalr] number of leftover MicroAlgos after the distribution of rewards-rate MicroAlgos for every reward unit in the next round.
Declaration
public ulong RewardsCalculationRound { get; set; }
Property Value
RewardsLevel
[earn] How many rewards, in MicroAlgos, have been distributed to each RewardUnit of MicroAlgos since genesis.
Declaration
public ulong RewardsLevel { get; set; }
Property Value
RewardsPool
[rwd] accepts periodic injections from the fee-sink and continually redistributes them as rewards.
Declaration
public Address RewardsPool { get; set; }
Property Value
RewardsRate
[rate] Number of new MicroAlgos added to the participation stake from rewards at the next round.
Declaration
public ulong RewardsRate { get; set; }
Property Value
RewardsResidue
[frac] Number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
Declaration
public ulong RewardsResidue { get; set; }
Property Value
Sha256Commitment
Root of transaction vector commitment merkle tree using SHA256 hash function.
Declaration
public Digest Sha256Commitment { get; set; }
Property Value
UpgradeApprove
[upgradeyes] Indicates a yes vote for the current proposal.
Declaration
public Optional<bool> UpgradeApprove { get; set; }
Property Value
UpgradeDelay
[upgradedelay] Indicates the time between acceptance and execution.
Declaration
public ulong UpgradeDelay { get; set; }
Property Value
UpgradePropose
[upgradeprop] Indicates a proposed upgrade.
Declaration
public Address UpgradePropose { get; set; }
Property Value
Methods
Equals(BlockHeader)
Declaration
public bool Equals(BlockHeader other)
Parameters
Returns
Implements