Skip to content

Block

Block = object

Defined in: packages/indexer_client/src/models/block.ts:31

Block information.

Definition: data/bookkeeping/block.go : Block

optional bonus: number

Defined in: packages/indexer_client/src/models/block.ts:45

the potential bonus payout for this block.


optional feesCollected: number

Defined in: packages/indexer_client/src/models/block.ts:40

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


genesisHash: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:55

[gh] hash to which this block belongs.


genesisId: string

Defined in: packages/indexer_client/src/models/block.ts:60

[gen] ID to which this block belongs.


participationUpdates: ParticipationUpdates

Defined in: packages/indexer_client/src/models/block.ts:121


previousBlockHash: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:65

[prev] Previous block hash.


optional previousBlockHash512: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:70

[prev512] Previous block hash, using SHA-512.


optional proposer: Address

Defined in: packages/indexer_client/src/models/block.ts:35

the proposer of this block.


optional proposerPayout: number

Defined in: packages/indexer_client/src/models/block.ts:50

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


rewards: BlockRewards

Defined in: packages/indexer_client/src/models/block.ts:71


round: bigint

Defined in: packages/indexer_client/src/models/block.ts:76

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


seed: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:81

[seed] Sortition seed.


optional stateProofTracking: StateProofTracking[]

Defined in: packages/indexer_client/src/models/block.ts:86

Tracks the status of state proofs.


timestamp: number

Defined in: packages/indexer_client/src/models/block.ts:91

[ts] Block creation timestamp in seconds since epoch


transactions: Transaction[]

Defined in: packages/indexer_client/src/models/block.ts:96

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


transactionsRoot: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:101

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


optional transactionsRootSha256: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:106

[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 transactionsRootSha512: Uint8Array

Defined in: packages/indexer_client/src/models/block.ts:111

[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 txnCounter: number

Defined in: packages/indexer_client/src/models/block.ts:118

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


upgradeState: BlockUpgradeState

Defined in: packages/indexer_client/src/models/block.ts:119


optional upgradeVote: BlockUpgradeVote

Defined in: packages/indexer_client/src/models/block.ts:120