Show / Hide Table of Contents

    Class TransactionParams

    TransactionParams contains the parameters that help a client construct a new transaction.

    Inheritance
    System.Object
    TransactionParams
    Implements
    System.IEquatable<TransactionParams>
    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 TransactionParams : IEquatable<TransactionParams>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    TransactionParams(String, Nullable<UInt64>, String, String, Nullable<UInt64>, Nullable<UInt64>)

    Initializes a new instance of the TransactionParams class.

    Declaration
    public TransactionParams(string consensusVersion = null, ulong? fee = default(ulong? ), string genesisID = null, string genesishashb64 = null, ulong? lastRound = default(ulong? ), ulong? minFee = default(ulong? ))
    Parameters
    Type Name Description
    System.String consensusVersion

    ConsensusVersion indicates the consensus protocol version as of LastRound. (required).

    System.Nullable<System.UInt64> fee

    Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol. (required).

    System.String genesisID

    Genesis ID (required).

    System.String genesishashb64

    Genesis hash (required).

    System.Nullable<System.UInt64> lastRound

    LastRound indicates the last round seen (required).

    System.Nullable<System.UInt64> minFee

    The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol..

    Properties

    | Improve this Doc View Source

    ConsensusVersion

    ConsensusVersion indicates the consensus protocol version as of LastRound.

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

    ConsensusVersion indicates the consensus protocol version as of LastRound.

    | Improve this Doc View Source

    Fee

    Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol.

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

    Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol.

    | 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

    LastRound

    LastRound indicates the last round seen

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

    LastRound indicates the last round seen

    | Improve this Doc View Source

    MinFee

    The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol.

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

    The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol.

    Methods

    | Improve this Doc View Source

    Equals(TransactionParams)

    Returns true if TransactionParams instances are equal

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

    Instance of TransactionParams 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