github.com/algorand/go-algorand-sdk@v1.24.0/client/v2/common/models/transaction_asset_transfer.go (about)

     1  package models
     2  
     3  // TransactionAssetTransfer fields for an asset transfer transaction.
     4  // Definition:
     5  // data/transactions/asset.go : AssetTransferTxnFields
     6  type TransactionAssetTransfer struct {
     7  	// Amount (aamt) Amount of asset to transfer. A zero amount transferred to self
     8  	// allocates that asset in the account's Assets map.
     9  	Amount uint64 `json:"amount"`
    10  
    11  	// AssetId (xaid) ID of the asset being transferred.
    12  	AssetId uint64 `json:"asset-id"`
    13  
    14  	// CloseAmount number of assets transfered to the close-to account as part of the
    15  	// transaction.
    16  	CloseAmount uint64 `json:"close-amount,omitempty"`
    17  
    18  	// CloseTo (aclose) Indicates that the asset should be removed from the account's
    19  	// Assets map, and specifies where the remaining asset holdings should be
    20  	// transferred. It's always valid to transfer remaining asset holdings to the
    21  	// creator account.
    22  	CloseTo string `json:"close-to,omitempty"`
    23  
    24  	// Receiver (arcv) Recipient address of the transfer.
    25  	Receiver string `json:"receiver"`
    26  
    27  	// Sender (asnd) The effective sender during a clawback transactions. If this is
    28  	// not a zero value, the real transaction sender must be the Clawback address from
    29  	// the AssetParams.
    30  	Sender string `json:"sender,omitempty"`
    31  }