Table of Contents

Class PreparedAccountTransaction

Namespace
Concordium.Sdk.Transactions
Assembly
Concordium.Sdk.dll

Represents an account transaction which is prepared for signing.

The transaction is prepared in the sense that it is augmented with the AccountAddress of the sender, the AccountSequenceNumber to use when submitting the transaction as well as its Expiry. These are also used when signing the transaction.

public sealed record PreparedAccountTransaction : IEquatable<PreparedAccountTransaction>
Inheritance
PreparedAccountTransaction
Implements
Inherited Members

Constructors

PreparedAccountTransaction(AccountAddress, AccountSequenceNumber, Expiry, EnergyAmount, AccountTransactionPayload)

Represents an account transaction which is prepared for signing.

The transaction is prepared in the sense that it is augmented with the AccountAddress of the sender, the AccountSequenceNumber to use when submitting the transaction as well as its Expiry. These are also used when signing the transaction.

public PreparedAccountTransaction(AccountAddress Sender, AccountSequenceNumber SequenceNumber, Expiry Expiry, EnergyAmount Energy, AccountTransactionPayload Payload)

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.

Energy EnergyAmount

The maximum energy cost of this transaction.

Payload AccountTransactionPayload

Payload to send to the node.

Properties

Energy

The maximum energy cost of this transaction.

public EnergyAmount Energy { get; init; }

Property Value

EnergyAmount

Expiry

Expiration time of the transaction.

public Expiry Expiry { get; init; }

Property Value

Expiry

Payload

Payload to send to the node.

public AccountTransactionPayload Payload { get; init; }

Property Value

AccountTransactionPayload

Sender

Address of the sender of the transaction.

public AccountAddress Sender { get; init; }

Property Value

AccountAddress

SequenceNumber

Account sequence number to use for the transaction.

public AccountSequenceNumber SequenceNumber { get; init; }

Property Value

AccountSequenceNumber

Methods

Sign(ITransactionSigner)

Signs the prepared transaction using the provided signer.

public SignedAccountTransaction Sign(ITransactionSigner transactionSigner)

Parameters

transactionSigner ITransactionSigner

The signer to use for signing the transaction.

Returns

SignedAccountTransaction

Exceptions

ArgumentException

A signature produced by the signing is not 64 bytes.