Show / Hide Table of Contents

    Class Transaction

    Transaction contains all fields common to all transactions and serves as an envelope to all transactions type

    Inheritance
    System.Object
    Transaction
    Implements
    System.IEquatable<Transaction>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Algorand.Algod.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class Transaction : IEquatable<Transaction>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    Transaction(AssetConfigTransactionType, AssetFreezeTransactionType, AssetTransferTransactionType, Nullable<UInt64>, Nullable<UInt64>, String, Nullable<UInt64>, String, String, String, KeyregTransactionType, Nullable<UInt64>, String, PaymentTransactionType, String, Nullable<UInt64>, String, TransactionResults, String)

    Initializes a new instance of the Transaction class.

    Declaration
    public Transaction(AssetConfigTransactionType curcfg = null, AssetFreezeTransactionType curfrz = null, AssetTransferTransactionType curxfer = null, ulong? fee = default(ulong? ), ulong? firstRound = default(ulong? ), string from = null, ulong? fromrewards = default(ulong? ), string genesisID = null, string genesishashb64 = null, string group = null, KeyregTransactionType keyreg = null, ulong? lastRound = default(ulong? ), string noteb64 = null, PaymentTransactionType payment = null, string poolerror = null, ulong? round = default(ulong? ), string tx = null, TransactionResults txresults = null, string type = null)
    Parameters
    Type Name Description
    AssetConfigTransactionType curcfg

    curcfg.

    AssetFreezeTransactionType curfrz

    curfrz.

    AssetTransferTransactionType curxfer

    curxfer.

    System.Nullable<System.UInt64> fee

    Fee is the transaction fee (required).

    System.Nullable<System.UInt64> firstRound

    FirstRound indicates the first valid round for this transaction (required).

    System.String from

    From is the sender's address (required).

    System.Nullable<System.UInt64> fromrewards

    FromRewards is the amount of pending rewards applied to the From account as part of this transaction..

    System.String genesisID

    Genesis ID (required).

    System.String genesishashb64

    Genesis hash (required).

    System.String group

    Group.

    KeyregTransactionType keyreg

    keyreg.

    System.Nullable<System.UInt64> lastRound

    LastRound indicates the last valid round for this transaction (required).

    System.String noteb64

    Note is a free form data.

    PaymentTransactionType payment

    payment.

    System.String poolerror

    PoolError indicates the transaction was evicted from this node's transaction pool (if non-empty). A non-empty PoolError does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future..

    System.Nullable<System.UInt64> round

    ConfirmedRound indicates the block number this transaction appeared in.

    System.String tx

    TxID is the transaction ID (required).

    TransactionResults txresults

    txresults.

    System.String type

    Type is the transaction type (required).

    Properties

    | Improve this Doc View Source

    Curcfg

    Gets or Sets Curcfg

    Declaration
    [DataMember(Name = "curcfg", EmitDefaultValue = false)]
    public AssetConfigTransactionType Curcfg { get; set; }
    Property Value
    Type Description
    AssetConfigTransactionType
    | Improve this Doc View Source

    Curfrz

    Gets or Sets Curfrz

    Declaration
    [DataMember(Name = "curfrz", EmitDefaultValue = false)]
    public AssetFreezeTransactionType Curfrz { get; set; }
    Property Value
    Type Description
    AssetFreezeTransactionType
    | Improve this Doc View Source

    Curxfer

    Gets or Sets Curxfer

    Declaration
    [DataMember(Name = "curxfer", EmitDefaultValue = false)]
    public AssetTransferTransactionType Curxfer { get; set; }
    Property Value
    Type Description
    AssetTransferTransactionType
    | Improve this Doc View Source

    Fee

    Fee is the transaction fee

    Declaration
    [DataMember(Name = "fee", EmitDefaultValue = false)]
    public ulong? Fee { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    Fee is the transaction fee

    | Improve this Doc View Source

    FirstRound

    FirstRound indicates the first valid round for this transaction

    Declaration
    [DataMember(Name = "first-round", EmitDefaultValue = false)]
    public ulong? FirstRound { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    FirstRound indicates the first valid round for this transaction

    | Improve this Doc View Source

    From

    From is the sender's address

    Declaration
    [DataMember(Name = "from", EmitDefaultValue = false)]
    public string From { get; set; }
    Property Value
    Type Description
    System.String

    From is the sender's address

    | Improve this Doc View Source

    Fromrewards

    FromRewards is the amount of pending rewards applied to the From account as part of this transaction.

    Declaration
    [DataMember(Name = "fromrewards", EmitDefaultValue = false)]
    public ulong? Fromrewards { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    FromRewards is the amount of pending rewards applied to the From account as part of this transaction.

    | Improve this Doc View Source

    Genesishashb64

    Genesis hash

    Declaration
    [DataMember(Name = "genesishashb64", EmitDefaultValue = false)]
    public string Genesishashb64 { get; set; }
    Property Value
    Type Description
    System.String

    Genesis hash

    | Improve this Doc View Source

    GenesisID

    Genesis ID

    Declaration
    [DataMember(Name = "genesisID", EmitDefaultValue = false)]
    public string GenesisID { get; set; }
    Property Value
    Type Description
    System.String

    Genesis ID

    | Improve this Doc View Source

    Group

    Group

    Declaration
    [DataMember(Name = "group", EmitDefaultValue = false)]
    public string Group { get; set; }
    Property Value
    Type Description
    System.String

    Group

    | Improve this Doc View Source

    Keyreg

    Gets or Sets Keyreg

    Declaration
    [DataMember(Name = "keyreg", EmitDefaultValue = false)]
    public KeyregTransactionType Keyreg { get; set; }
    Property Value
    Type Description
    KeyregTransactionType
    | Improve this Doc View Source

    LastRound

    LastRound indicates the last valid round for this transaction

    Declaration
    [DataMember(Name = "last-round", EmitDefaultValue = false)]
    public ulong? LastRound { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    LastRound indicates the last valid round for this transaction

    | Improve this Doc View Source

    Noteb64

    Note is a free form data

    Declaration
    [DataMember(Name = "noteb64", EmitDefaultValue = false)]
    public string Noteb64 { get; set; }
    Property Value
    Type Description
    System.String

    Note is a free form data

    | Improve this Doc View Source

    Payment

    Gets or Sets Payment

    Declaration
    [DataMember(Name = "payment", EmitDefaultValue = false)]
    public PaymentTransactionType Payment { get; set; }
    Property Value
    Type Description
    PaymentTransactionType
    | Improve this Doc View Source

    Poolerror

    PoolError indicates the transaction was evicted from this node's transaction pool (if non-empty). A non-empty PoolError does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future.

    Declaration
    [DataMember(Name = "poolerror", EmitDefaultValue = false)]
    public string Poolerror { get; set; }
    Property Value
    Type Description
    System.String

    PoolError indicates the transaction was evicted from this node's transaction pool (if non-empty). A non-empty PoolError does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future.

    | Improve this Doc View Source

    Round

    ConfirmedRound indicates the block number this transaction appeared in

    Declaration
    [DataMember(Name = "round", EmitDefaultValue = false)]
    public ulong? Round { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    ConfirmedRound indicates the block number this transaction appeared in

    | Improve this Doc View Source

    Tx

    TxID is the transaction ID

    Declaration
    [DataMember(Name = "tx", EmitDefaultValue = false)]
    public string Tx { get; set; }
    Property Value
    Type Description
    System.String

    TxID is the transaction ID

    | Improve this Doc View Source

    Txresults

    Gets or Sets Txresults

    Declaration
    [DataMember(Name = "txresults", EmitDefaultValue = false)]
    public TransactionResults Txresults { get; set; }
    Property Value
    Type Description
    TransactionResults
    | Improve this Doc View Source

    Type

    Type is the transaction type

    Declaration
    [DataMember(Name = "type", EmitDefaultValue = false)]
    public string Type { get; set; }
    Property Value
    Type Description
    System.String

    Type is the transaction type

    Methods

    | Improve this Doc View Source

    Equals(Transaction)

    Returns true if Transaction instances are equal

    Declaration
    public bool Equals(Transaction input)
    Parameters
    Type Name Description
    Transaction input

    Instance of Transaction to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    | Improve this Doc View Source

    Equals(Object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    System.Object input

    Object to be compared

    Returns
    Type Description
    System.Boolean

    Boolean

    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Gets the hash code

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

    Hash code

    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    System.String

    JSON string presentation of the object

    | Improve this Doc View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String presentation of the object

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    IValidatableObject.Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationContext validationContext

    Validation context

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX