Table of Contents

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

Amount CcdAmount

Amount to send.

Receiver AccountAddress

Address of the receiver account to which the amount will be sent.

Memo OnChainData

Memo to include with the transaction.

Properties

Amount

Amount to send.

public CcdAmount Amount { get; init; }

Property Value

CcdAmount

Memo

Memo to include with the transaction.

public OnChainData Memo { get; init; }

Property Value

OnChainData

Receiver

Address of the receiver account to which the amount will be sent.

public AccountAddress Receiver { get; init; }

Property Value

AccountAddress

Methods

Prepare(AccountAddress, AccountSequenceNumber, Expiry)

Prepares the account transaction payload for signing.

public PreparedAccountTransaction Prepare(AccountAddress sender, AccountSequenceNumber sequenceNumber, Expiry expiry)

Parameters

sender AccountAddress

Address of the sender of the transaction.

sequenceNumber AccountSequenceNumber

Account sequence number to use for the transaction.

expiry Expiry

Expiration time of the transaction.

Returns

PreparedAccountTransaction

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

bytes ReadOnlySpan<byte>

The payload as bytes.

output (TransferWithMemo Transfer, string Error)

Where to write the result of the operation.

Returns

bool