Show / Hide Table of Contents

    Class TransactionPayment

    Fields for a payment transaction. Definition: data/transactions/payment.go : PaymentTxnFields

    Inheritance
    System.Object
    TransactionPayment
    Implements
    System.IEquatable<TransactionPayment>
    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.V2.Model
    Assembly: Algorand.dll
    Syntax
    [DataContract]
    public class TransactionPayment : IEquatable<TransactionPayment>, IValidatableObject

    Constructors

    | Improve this Doc View Source

    TransactionPayment(Nullable<Int64>, Nullable<Int64>, String, String)

    Initializes a new instance of the TransactionPayment class.

    Declaration
    public TransactionPayment(long? amount = default(long? ), long? closeAmount = default(long? ), string closeRemainderTo = null, string receiver = null)
    Parameters
    Type Name Description
    System.Nullable<System.Int64> amount

    \[amt\] number of MicroAlgos intended to be transferred. (required).

    System.Nullable<System.Int64> closeAmount

    Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account..

    System.String closeRemainderTo

    \[close\] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address..

    System.String receiver

    \[rcv\] receiver's address. (required).

    Properties

    | Improve this Doc View Source

    Amount

    \[amt\] number of MicroAlgos intended to be transferred.

    Declaration
    [DataMember(Name = "amount", EmitDefaultValue = false)]
    public long? Amount { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    \[amt\] number of MicroAlgos intended to be transferred.

    | Improve this Doc View Source

    CloseAmount

    Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account.

    Declaration
    [DataMember(Name = "close-amount", EmitDefaultValue = false)]
    public long? CloseAmount { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int64>

    Number of MicroAlgos that were sent to the close-remainder-to address when closing the sender account.

    | Improve this Doc View Source

    CloseRemainderTo

    \[close\] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address.

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

    \[close\] when set, indicates that the sending account should be closed and all remaining funds be transferred to this address.

    | Improve this Doc View Source

    Receiver

    \[rcv\] receiver's address.

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

    \[rcv\] receiver's address.

    Methods

    | Improve this Doc View Source

    Equals(TransactionPayment)

    Returns true if TransactionPayment instances are equal

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

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