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
AccountAddressAddress of the sender of the transaction.
SequenceNumber
AccountSequenceNumberAccount sequence number to use for the transaction.
Expiry
ExpiryExpiration time of the transaction.
Energy
EnergyAmountThe maximum energy cost of this transaction.
Payload
AccountTransactionPayloadPayload to send to the node.
Properties
Energy
The maximum energy cost of this transaction.
public EnergyAmount Energy { get; init; }
Property Value
Expiry
Expiration time of the transaction.
public Expiry Expiry { get; init; }
Property Value
Payload
Payload to send to the node.
public AccountTransactionPayload Payload { get; init; }
Property Value
Sender
Address of the sender of the transaction.
public AccountAddress Sender { get; init; }
Property Value
SequenceNumber
Account sequence number to use for the transaction.
public AccountSequenceNumber SequenceNumber { get; init; }
Property Value
Methods
Sign(ITransactionSigner)
Signs the prepared transaction using the provided signer.
public SignedAccountTransaction Sign(ITransactionSigner transactionSigner)
Parameters
transactionSigner
ITransactionSignerThe signer to use for signing the transaction.
Returns
Exceptions
- ArgumentException
A signature produced by the signing is not 64 bytes.