Block information. Definition: data/bookkeeping/block.go : Block

Implements

Constructors

  • Creates a new Block object.

    Parameters

    • __namedParameters: {
          bonus?: number | bigint;
          feesCollected?: number | bigint;
          genesisHash: string | Uint8Array;
          genesisId: string;
          participationUpdates?: indexerModels.ParticipationUpdates;
          previousBlockHash: string | Uint8Array;
          proposer?: string | Address;
          proposerPayout?: number | bigint;
          rewards?: BlockRewards;
          round: number | bigint;
          seed: string | Uint8Array;
          stateProofTracking?: StateProofTracking[];
          timestamp: number | bigint;
          transactions?: indexerModels.Transaction[];
          transactionsRoot: string | Uint8Array;
          transactionsRootSha256: string | Uint8Array;
          txnCounter?: number | bigint;
          upgradeState?: BlockUpgradeState;
          upgradeVote?: BlockUpgradeVote;
      }
      • Optional bonus?: number | bigint
      • Optional feesCollected?: number | bigint
      • genesisHash: string | Uint8Array
      • genesisId: string
      • Optional participationUpdates?: indexerModels.ParticipationUpdates
      • previousBlockHash: string | Uint8Array
      • Optional proposer?: string | Address
      • Optional proposerPayout?: number | bigint
      • Optional rewards?: BlockRewards
      • round: number | bigint
      • seed: string | Uint8Array
      • Optional stateProofTracking?: StateProofTracking[]
      • timestamp: number | bigint
      • Optional transactions?: indexerModels.Transaction[]
      • transactionsRoot: string | Uint8Array
      • transactionsRootSha256: string | Uint8Array
      • Optional txnCounter?: number | bigint
      • Optional upgradeState?: BlockUpgradeState
      • Optional upgradeVote?: BlockUpgradeVote

    Returns indexerModels.Block

Properties

bonus?: number

the potential bonus payout for this block.

feesCollected?: number

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

genesisHash: Uint8Array

(gh) hash to which this block belongs.

genesisId: string

(gen) ID to which this block belongs.

participationUpdates?: indexerModels.ParticipationUpdates

Participation account data that needs to be checked/acted on by the network.

previousBlockHash: Uint8Array

(prev) Previous block hash.

proposer?: Address

the proposer of this block.

proposerPayout?: number

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

rewards?: BlockRewards

Fields relating to rewards,

round: bigint

(rnd) Current round on which this block was appended to the chain.

seed: Uint8Array

(seed) Sortition seed.

stateProofTracking?: StateProofTracking[]

Tracks the status of state proofs.

timestamp: number

(ts) Block creation timestamp in seconds since eposh

transactions?: indexerModels.Transaction[]

(txns) list of transactions corresponding to a given round.

transactionsRoot: Uint8Array

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

transactionsRootSha256: Uint8Array

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

txnCounter?: 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).

upgradeState?: BlockUpgradeState

Fields relating to a protocol upgrade.

upgradeVote?: BlockUpgradeVote

Fields relating to voting for a protocol upgrade.

encodingSchemaValue: undefined | Schema

Accessors

Methods

Generated using TypeDoc