Creates a new Block
object.
Optional
bonus?: number | bigintOptional
feesOptional
participationOptional
proposer?: string | AddressOptional
proposerOptional
rewards?: BlockRewardsOptional
stateOptional
transactions?: indexerModels.Transaction[]Optional
txnOptional
upgradeOptional
upgradeOptional
bonusthe potential bonus payout for 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
participationParticipation account data that needs to be checked/acted on by the network.
(prev) Previous block hash.
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
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