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