Class TransferWithMemo
- Namespace
- Concordium.Sdk.Transactions
- Assembly
- Concordium.Sdk.dll
Represents a "transfer with memo" account transaction.
Used for transferring CCD from one account to another. Like Transfer, but additionally stores a memo associated with the transfer on-chain.
public sealed record TransferWithMemo : AccountTransactionPayload, IEquatable<AccountTransactionPayload>, IEquatable<TransferWithMemo>
- Inheritance
-
TransferWithMemo
- Implements
- Inherited Members
Constructors
TransferWithMemo(CcdAmount, AccountAddress, OnChainData)
Represents a "transfer with memo" account transaction.
Used for transferring CCD from one account to another. Like Transfer, but additionally stores a memo associated with the transfer on-chain.
public TransferWithMemo(CcdAmount Amount, AccountAddress Receiver, OnChainData Memo)
Parameters
AmountCcdAmountAmount to send.
ReceiverAccountAddressAddress of the receiver account to which the amount will be sent.
MemoOnChainDataMemo to include with the transaction.
Properties
Amount
Amount to send.
public CcdAmount Amount { get; init; }
Property Value
Memo
Memo to include with the transaction.
public OnChainData Memo { get; init; }
Property Value
Receiver
Address of the receiver account to which the amount will be sent.
public AccountAddress Receiver { get; init; }
Property Value
Methods
Prepare(AccountAddress, AccountSequenceNumber, Expiry)
Prepares the account transaction payload for signing.
public PreparedAccountTransaction Prepare(AccountAddress sender, AccountSequenceNumber sequenceNumber, Expiry expiry)
Parameters
senderAccountAddressAddress of the sender of the transaction.
sequenceNumberAccountSequenceNumberAccount sequence number to use for the transaction.
expiryExpiryExpiration time of the transaction.
Returns
ToBytes()
Copies the "transfer with memo" account transaction in the binary format expected by the node to a byte array.
public override byte[] ToBytes()
Returns
- byte[]
TryDeserial(ReadOnlySpan<byte>, out (TransferWithMemo? Transfer, string? Error))
Create a "transfer with memo" payload from a serialized as bytes.
public static bool TryDeserial(ReadOnlySpan<byte> bytes, out (TransferWithMemo? Transfer, string? Error) output)
Parameters
bytesReadOnlySpan<byte>The payload as bytes.
output(TransferWithMemo Transfer, string Error)Where to write the result of the operation.