Struct Block
Assembly: cs.temp.dll.dll
Syntax
public struct Block : IEquatable<Block>
Properties
GenesisHash
[gh] hash to which this block belongs.
Declaration
public byte[] GenesisHash { get; set; }
Property Value
GenesisId
[gen] ID to which this block belongs.
Declaration
public string GenesisId { get; set; }
Property Value
ParticipationUpdates
Declaration
public ParticipationUpdates ParticipationUpdates { get; set; }
Property Value
PreviousBlockHash
[prev] Previous block hash.
Declaration
public byte[] PreviousBlockHash { get; set; }
Property Value
Rewards
Declaration
public BlockRewards Rewards { get; set; }
Property Value
Round
[rnd] Current round on which this block was appended to the chain.
Declaration
public ulong Round { get; set; }
Property Value
Seed
Declaration
public byte[] Seed { get; set; }
Property Value
StateProofTracking
Tracks the status of state proofs.
Declaration
public StateProofTracking[] StateProofTracking { get; set; }
Property Value
Timestamp
[ts] Block creation timestamp in seconds since eposh
Declaration
public ulong Timestamp { get; set; }
Property Value
Transactions
[txns] list of transactions corresponding to a given round.
Declaration
public Transaction[] Transactions { get; set; }
Property Value
TransactionsRoot
[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.
Declaration
public byte[] TransactionsRoot { get; set; }
Property Value
TransactionsRootSha256
[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.
Declaration
public byte[] TransactionsRootSha256 { get; set; }
Property Value
TxnCounter
[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).
Declaration
public Optional<ulong> TxnCounter { get; set; }
Property Value
UpgradeState
Declaration
public BlockUpgradeState UpgradeState { get; set; }
Property Value
UpgradeVote
Declaration
public BlockUpgradeVote UpgradeVote { get; set; }
Property Value
Methods
Equals(Block)
Declaration
public bool Equals(Block other)
Parameters
Type |
Name |
Description |
Block |
other |
|
Returns