Class Block
Block information.
Definition:
data/bookkeeping/block.go : Block
Inheritance
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
public class Block
  Properties
| Improve this Doc View SourceCurrentProtocol
[proto] The current protocol version.
Declaration
[JsonProperty("proto")]
[Required(AllowEmptyStrings = true)]
public string CurrentProtocol { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
FeeSink
[fees] accepts transaction fees, it can only spend to the incentive pool.
Declaration
[JsonProperty("fees")]
[Required(AllowEmptyStrings = true)]
public Address FeeSink { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Address | 
GenesisHash
[gh] hash to which this block belongs.
Declaration
[JsonProperty("gh")]
[Required(AllowEmptyStrings = true)]
public byte[] GenesisHash { get; set; }
  Property Value
| Type | Description | 
|---|---|
| byte[] | 
GenesisId
[gen] ID to which this block belongs.
Declaration
[JsonProperty("gen")]
[Required(AllowEmptyStrings = true)]
public string GenesisId { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
PreviousBlockHash
[prev] Previous block hash.
Declaration
[JsonProperty("prev")]
[Required(AllowEmptyStrings = true)]
public string PreviousBlockHash { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
RewardsCalculationRound
[rwcalr] number of leftover MicroAlgos after the distribution of rewards-rate MicroAlgos for every reward unit in the next round.
Declaration
[JsonProperty("rwcalcr")]
public ulong RewardsCalculationRound { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ulong | 
RewardsLevel
[earn] How many rewards, in MicroAlgos, have been distributed to each RewardUnit of MicroAlgos since genesis.
Declaration
[JsonProperty("earn")]
public ulong RewardsLevel { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ulong | 
RewardsPool
[rwd] accepts periodic injections from the fee-sink and continually redistributes them as rewards.
Declaration
[JsonProperty("rwd")]
[Required(AllowEmptyStrings = true)]
public string RewardsPool { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
RewardsRate
[rate] Number of new MicroAlgos added to the participation stake from rewards at the next round.
Declaration
[JsonProperty("rate")]
public ulong RewardsRate { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ulong | 
RewardsResidue
[frac] Number of leftover MicroAlgos after the distribution of RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
Declaration
[JsonProperty("frac")]
public ulong RewardsResidue { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ulong | 
Round
[rnd] Current round on which this block was appended to the chain.
Declaration
[JsonProperty("rnd")]
public ulong Round { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ulong | 
Seed
[seed] Sortition seed.
Declaration
[JsonProperty("seed")]
[Required(AllowEmptyStrings = true)]
public byte[] Seed { get; set; }
  Property Value
| Type | Description | 
|---|---|
| byte[] | 
Timestamp
[ts] Block creation timestamp in seconds since eposh
Declaration
[JsonProperty("ts")]
public ulong Timestamp { get; set; }
  Property Value
| Type | Description | 
|---|---|
| ulong | 
Transactions
[txns] list of transactions corresponding to a given round.
Declaration
[JsonProperty("txns", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public ICollection<SignedTransaction> Transactions { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.ICollection<T><SignedTransaction> | 
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
[JsonProperty("txn")]
[Required(AllowEmptyStrings = true)]
public byte[] TransactionsRoot { get; set; }
  Property Value
| Type | Description | 
|---|---|
| byte[] | 
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
[JsonProperty("tc", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public int? TxnCounter { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int? |