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
SenderAccountAddressAddress of the sender of the transaction.
SequenceNumberAccountSequenceNumberAccount sequence number to use for the transaction.
ExpiryExpiryExpiration time of the transaction.
EnergyEnergyAmountThe maximum energy cost of this transaction.
PayloadAccountTransactionPayloadPayload 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
transactionSignerITransactionSignerThe signer to use for signing the transaction.
Returns
Exceptions
- ArgumentException
A signature produced by the signing is not 64 bytes.