@algorandfoundation/algokit-subscriber / types/subscription / BlockMetadata
types/subscription.BlockMetadata
Metadata about a block that was retrieved from algod.
• fullTransactionCount: number
Full count of transactions and inner transactions (recursively) in this block.
• genesisHash: string
The base64 genesis hash of the chain.
• genesisId: string
The genesis ID of the chain.
• Optional hash: string
The base64 block hash.
• parentTransactionCount: number
Count of parent transactions in this block
• Optional participationUpdates: ParticipationUpdates
Participation account data that needs to be checked/acted on by the network.
• Optional previousBlockHash: string
The base64 previous block hash.
• Optional proposer: string
Address of the proposer of this block
• Optional rewards: BlockRewards
Fields relating to rewards
• round: bigint
The round of the block.
• seed: string
The base64 seed of the block.
• Optional stateProofTracking: BlockStateProofTracking[]
Tracks the status of state proofs.
• timestamp: number
Block creation timestamp in seconds since epoch
• transactionsRoot: string
TransactionsRoot authenticates the set of transactions appearing in the block. More specifically, it’s the root of a merkle tree whose leaves are the block’s Txids, in lexicographic order. For the empty block, it’s 0. Note that the TxnRoot does not authenticate the signatures on the transactions, only the transactions themselves. Two blocks with the same transactions but in a different order and with different signatures will have the same TxnRoot. Pattern : “^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$”
• transactionsRootSha256: string
TransactionsRootSHA256 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA256 hash function instead of the default SHA512_256. This commitment can be used on environments where only the SHA256 function exists.
• txnCounter: bigint
Number of the next transaction that will be committed after this block. It is 0 when no transactions have ever been committed (since TxnCounter started being supported).
• Optional upgradeState: BlockUpgradeState
Fields relating to a protocol upgrade.
• Optional upgradeVote: BlockUpgradeVote
Fields relating to voting for a protocol upgrade.