Skip to content

Block

Block: object

Block information.

Definition: data/bookkeeping/block.go : Block

Type declaration

bonus?

optional bonus: number

the potential bonus payout for this block.

fees-collected?

optional fees-collected: number

the sum of all fees paid by transactions in this block.

genesis-hash

genesis-hash: string

[gh] hash to which this block belongs.

genesis-id

genesis-id: string

[gen] ID to which this block belongs.

participation-updates?

optional participation-updates: ParticipationUpdates

previous-block-hash

previous-block-hash: string

[prev] Previous block hash.

proposer?

optional proposer: string

the proposer of this block.

proposer-payout?

optional proposer-payout: number

the actual amount transferred to the proposer from the fee sink.

rewards?

optional rewards: BlockRewards

round

round: number

[rnd] Current round on which this block was appended to the chain.

seed

seed: string

[seed] Sortition seed.

state-proof-tracking?

optional state-proof-tracking: StateProofTracking[]

Tracks the status of state proofs.

timestamp

timestamp: number

[ts] Block creation timestamp in seconds since eposh

transactions?

optional transactions: Transaction[]

[txns] list of transactions corresponding to a given round.

transactions-root

transactions-root: string

[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.

transactions-root-sha256

transactions-root-sha256: string

[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.

txn-counter?

optional txn-counter: number

[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).

upgrade-state?

optional upgrade-state: BlockUpgradeState

upgrade-vote?

optional upgrade-vote: BlockUpgradeVote

Defined in

types.gen.ts:424