Creates a new Block object.
Optional bonus?: number | bigintOptional congestionOptional feesOptional load?: number | bigintOptional participationOptional previousOptional proposer?: string | AddressOptional proposerOptional rewards?: BlockRewardsOptional stateOptional transactions?: indexerModels.Transaction[]Optional transactionsOptional txnOptional upgradeOptional upgradeOptional bonusthe potential bonus payout for this block.
Optional congestionthe fee required, beyond the minimum fee, for "normal" transactions in this block.
Optional feesthe sum of all fees paid by transactions in this block.
(gh) hash to which this block belongs.
(gen) ID to which this block belongs.
Optional loadthe degree to which this block is full, based on the number of bytes in the final block compared to the maximum allowed. Expressed as a fixed-point integer with 6 digits of precision, so 1,000,000 is a completely full block.
Optional participationParticipation account data that needs to be checked/acted on by the network.
(prev) Previous block hash.
Optional previous(prev512) Previous block hash, using SHA-512.
Optional proposerthe proposer of this block.
Optional proposerthe actual amount transferred to the proposer from the fee sink.
Optional rewardsFields relating to rewards,
(rnd) Current round on which this block was appended to the chain.
(seed) Sortition seed.
Optional stateTracks the status of state proofs.
(ts) Block creation timestamp in seconds since eposh
Optional transactions(txns) list of transactions corresponding to a given round.
(txn) 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.
(txn256) 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.
Optional transactions(txn512) TransactionsRootSHA512 is an auxiliary TransactionRoot, built using a vector commitment instead of a merkle tree, and SHA512 hash function instead of the default SHA512_256.
Optional txn(tc) TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced. Specifically, TxnCounter is the 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 upgradeFields relating to a protocol upgrade.
Optional upgradeFields relating to voting for a protocol upgrade.
Static Private encodingStatic encodingStatic fromGenerated using TypeDoc
Block information. Definition: data/bookkeeping/block.go : Block