Class AccountTransactionHeader
- Namespace
- Concordium.Sdk.Transactions
- Assembly
- Concordium.Sdk.dll
Represents the header of an account transaction.
Transactions sent to the node include an account transaction header with the following information that is used when processing the transaction:
The AccountAddress of the sender, the AccountSequenceNumber to use, the Expiry time of the transaction, the maximum EnergyAmount to spend on the transaction as well as the PayloadSize.
public sealed record AccountTransactionHeader : IEquatable<AccountTransactionHeader>
- Inheritance
-
AccountTransactionHeader
- Implements
- Inherited Members
Constructors
AccountTransactionHeader(AccountAddress, AccountSequenceNumber, Expiry, EnergyAmount, PayloadSize)
Represents the header of an account transaction.
Transactions sent to the node include an account transaction header with the following information that is used when processing the transaction:
The AccountAddress of the sender, the AccountSequenceNumber to use, the Expiry time of the transaction, the maximum EnergyAmount to spend on the transaction as well as the PayloadSize.
public AccountTransactionHeader(AccountAddress Sender, AccountSequenceNumber SequenceNumber, Expiry Expiry, EnergyAmount MaxEnergyCost, PayloadSize PayloadSize)
Parameters
Sender
AccountAddressAddress of the sender of the transaction.
SequenceNumber
AccountSequenceNumberAccount sequence number to use for the transaction.
Expiry
ExpiryExpiration time of the transaction.
MaxEnergyCost
EnergyAmountMaximum amount of energy to spend on this transaction.
PayloadSize
PayloadSizeSize of the transaction payload.
Fields
BytesLength
The length of the serialized account transaction header in bytes.
public const uint BytesLength = 60
Field Value
Properties
Expiry
Expiration time of the transaction.
public Expiry Expiry { get; init; }
Property Value
MaxEnergyCost
Maximum amount of energy to spend on this transaction.
public EnergyAmount MaxEnergyCost { get; init; }
Property Value
PayloadSize
Size of the transaction payload.
public PayloadSize PayloadSize { 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
ToBytes()
Copies the transaction header in the binary format expected by the node to a byte array.
public byte[] ToBytes()
Returns
- byte[]
ToProto()
Converts the account transaction header to its corresponding protocol buffer message instance.
public AccountTransactionHeader ToProto()