Show / Hide Table of Contents

    Class TransactionAssetTransfer

    Fields for an asset transfer transaction. Definition: data/transactions/asset.go : AssetTransferTxnFields

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

    Constructors

    | Improve this Doc View Source

    TransactionAssetTransfer(Nullable<UInt64>, Nullable<Int64>, Nullable<UInt64>, String, String, String)

    Initializes a new instance of the TransactionAssetTransfer class.

    Declaration
    public TransactionAssetTransfer(ulong? amount = default(ulong? ), long? assetId = default(long? ), ulong? closeAmount = default(ulong? ), string closeTo = null, string receiver = null, string sender = null)
    Parameters
    Type Name Description
    System.Nullable<System.UInt64> amount

    \[aamt\] Amount of asset to transfer. A zero amount transferred to self allocates that asset in the account's Assets map. (required).

    System.Nullable<System.Int64> assetId

    \[xaid\] ID of the asset being transferred. (required).

    System.Nullable<System.UInt64> closeAmount

    Number of assets transfered to the close-to account as part of the transaction..

    System.String closeTo

    \[aclose\] Indicates that the asset should be removed from the account's Assets map, and specifies where the remaining asset holdings should be transferred. It's always valid to transfer remaining asset holdings to the creator account..

    System.String receiver

    \[arcv\] Recipient address of the transfer. (required).

    System.String sender

    \[asnd\] The effective sender during a clawback transactions. If this is not a zero value, the real transaction sender must be the Clawback address from the AssetParams..

    Properties

    | Improve this Doc View Source

    Amount

    \[aamt\] Amount of asset to transfer. A zero amount transferred to self allocates that asset in the account's Assets map.

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

    \[aamt\] Amount of asset to transfer. A zero amount transferred to self allocates that asset in the account's Assets map.

    | Improve this Doc View Source

    AssetId

    \[xaid\] ID of the asset being transferred.

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

    \[xaid\] ID of the asset being transferred.

    | Improve this Doc View Source

    CloseAmount

    Number of assets transfered to the close-to account as part of the transaction.

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

    Number of assets transfered to the close-to account as part of the transaction.

    | Improve this Doc View Source

    CloseTo

    \[aclose\] Indicates that the asset should be removed from the account's Assets map, and specifies where the remaining asset holdings should be transferred. It's always valid to transfer remaining asset holdings to the creator account.

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

    \[aclose\] Indicates that the asset should be removed from the account's Assets map, and specifies where the remaining asset holdings should be transferred. It's always valid to transfer remaining asset holdings to the creator account.

    | Improve this Doc View Source

    Receiver

    \[arcv\] Recipient address of the transfer.

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

    \[arcv\] Recipient address of the transfer.

    | Improve this Doc View Source

    Sender

    \[asnd\] The effective sender during a clawback transactions. If this is not a zero value, the real transaction sender must be the Clawback address from the AssetParams.

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

    \[asnd\] The effective sender during a clawback transactions. If this is not a zero value, the real transaction sender must be the Clawback address from the AssetParams.

    Methods

    | Improve this Doc View Source

    Equals(TransactionAssetTransfer)

    Returns true if TransactionAssetTransfer instances are equal

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

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