Table of Contents

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 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.

MaxEnergyCost EnergyAmount

Maximum amount of energy to spend on this transaction.

PayloadSize PayloadSize

Size of the transaction payload.

Fields

BytesLength

The length of the serialized account transaction header in bytes.

public const uint BytesLength = 60

Field Value

uint

Properties

Expiry

Expiration time of the transaction.

public Expiry Expiry { get; init; }

Property Value

Expiry

MaxEnergyCost

Maximum amount of energy to spend on this transaction.

public EnergyAmount MaxEnergyCost { get; init; }

Property Value

EnergyAmount

PayloadSize

Size of the transaction payload.

public PayloadSize PayloadSize { get; init; }

Property Value

PayloadSize

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

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()

Returns

AccountTransactionHeader