Search Results for

    Show / Hide Table of Contents

    Struct Block

    Namespace: Algorand.Unity.Indexer
    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
    Type Description
    Byte[]

    GenesisId

    [gen] ID to which this block belongs.

    Declaration
    [AlgoApiField("genesis-id")]
    public string GenesisId { get; set; }
    Property Value
    Type Description
    String

    ParticipationUpdates

    Declaration
    [AlgoApiField("participation-updates")]
    public ParticipationUpdates ParticipationUpdates { get; set; }
    Property Value
    Type Description
    ParticipationUpdates

    PreviousBlockHash

    [prev] Previous block hash.

    Declaration
    [AlgoApiField("previous-block-hash")]
    public byte[] PreviousBlockHash { get; set; }
    Property Value
    Type Description
    Byte[]

    Rewards

    Declaration
    [AlgoApiField("rewards")]
    public BlockRewards Rewards { get; set; }
    Property Value
    Type Description
    BlockRewards

    Round

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

    Declaration
    [AlgoApiField("round")]
    public ulong Round { get; set; }
    Property Value
    Type Description
    UInt64

    Seed

    [seed] Sortition seed.

    Declaration
    [AlgoApiField("seed")]
    public byte[] Seed { get; set; }
    Property Value
    Type Description
    Byte[]

    StateProofTracking

    Tracks the status of state proofs.

    Declaration
    [AlgoApiField("state-proof-tracking")]
    public StateProofTracking[] StateProofTracking { get; set; }
    Property Value
    Type Description
    StateProofTracking[]

    Timestamp

    [ts] Block creation timestamp in seconds since eposh

    Declaration
    [AlgoApiField("timestamp")]
    public ulong Timestamp { get; set; }
    Property Value
    Type Description
    UInt64

    Transactions

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

    Declaration
    [AlgoApiField("transactions")]
    public Transaction[] Transactions { get; set; }
    Property Value
    Type Description
    Transaction[]

    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
    Type Description
    Byte[]

    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
    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
    [AlgoApiField("txn-counter")]
    public Optional<ulong> TxnCounter { get; set; }
    Property Value
    Type Description
    Optional<UInt64>

    UpgradeState

    Declaration
    [AlgoApiField("upgrade-state")]
    public BlockUpgradeState UpgradeState { get; set; }
    Property Value
    Type Description
    BlockUpgradeState

    UpgradeVote

    Declaration
    [AlgoApiField("upgrade-vote")]
    public BlockUpgradeVote UpgradeVote { get; set; }
    Property Value
    Type Description
    BlockUpgradeVote

    Methods

    Equals(Block)

    Declaration
    public bool Equals(Block other)
    Parameters
    Type Name Description
    Block other
    Returns
    Type Description
    Boolean
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾