Search Results for

    Show / Hide Table of Contents

    Struct TransactionHeader

    Contains parameters used in all transaction types.

    Implements
    ITransactionHeader
    Namespace: Algorand.Unity
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public struct TransactionHeader : IEquatable<TransactionHeader>, ITransactionHeader
    Remarks

    For the most part, this is used internally in the sdk and shouldn't be used directly.

    Constructors

    TransactionHeader(Address, TransactionType, TransactionParams)

    Declaration
    public TransactionHeader(Address sender, TransactionType transactionType, TransactionParams transactionParams)
    Parameters
    Type Name Description
    Address sender
    TransactionType transactionType
    TransactionParams transactionParams

    Properties

    Fee

    Paid by the sender to the FeeSink to prevent denial-of-service. The minimum fee on Algorand is currently 1000 microAlgos.

    Declaration
    public MicroAlgos Fee { get; set; }
    Property Value
    Type Description
    MicroAlgos

    FirstValidRound

    The first round for when the transaction is valid. If the transaction is sent prior to this round it will be rejected by the network.

    Declaration
    public ulong FirstValidRound { get; set; }
    Property Value
    Type Description
    UInt64

    GenesisHash

    The hash of the genesis block of the network for which the transaction is valid.

    Declaration
    public GenesisHash GenesisHash { get; set; }
    Property Value
    Type Description
    GenesisHash

    GenesisId

    The human-readable string that identifies the network for the transaction. The genesis ID is found in the genesis block.

    Declaration
    public FixedString32Bytes GenesisId { get; set; }
    Property Value
    Type Description
    FixedString32Bytes

    Group

    The group specifies that the transaction is part of a group and, if so, specifies the hash of the transaction group. See Algorand.Unity.TransactionGroup.

    Declaration
    public TransactionId Group { get; set; }
    Property Value
    Type Description
    TransactionId

    LastValidRound

    The ending round for which the transaction is valid. After this round, the transaction will be rejected by the network.

    Declaration
    public ulong LastValidRound { get; set; }
    Property Value
    Type Description
    UInt64

    Lease

    A lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed. A lease is often used in the context of Algorand Smart Contracts to prevent replay attacks.

    Declaration
    public TransactionId Lease { get; set; }
    Property Value
    Type Description
    TransactionId

    Note

    Any data up to 1000 bytes.

    Declaration
    public byte[] Note { get; set; }
    Property Value
    Type Description
    Byte[]

    RekeyTo

    Specifies the authorized address. This address will be used to authorize all future transactions.

    Declaration
    public Address RekeyTo { get; set; }
    Property Value
    Type Description
    Address

    Sender

    The address of the account that pays the fee and amount.

    Declaration
    public Address Sender { get; set; }
    Property Value
    Type Description
    Address

    TransactionType

    Specifies the type of transaction. This value is automatically generated using any of the developer tools.

    Declaration
    public TransactionType TransactionType { get; set; }
    Property Value
    Type Description
    TransactionType

    Methods

    Equals(TransactionHeader)

    Declaration
    public bool Equals(TransactionHeader other)
    Parameters
    Type Name Description
    TransactionHeader other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Implements

    ITransactionHeader
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾