Table of Contents

Class RegisterData

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

Represents a "register data" account transaction.

Used for registering data on-chain.

public sealed record RegisterData : AccountTransactionPayload, IEquatable<AccountTransactionPayload>, IEquatable<RegisterData>
Inheritance
RegisterData
Implements
Inherited Members

Constructors

RegisterData(OnChainData)

Represents a "register data" account transaction.

Used for registering data on-chain.

public RegisterData(OnChainData Data)

Parameters

Data OnChainData

The data to be registered on-chain.

Properties

Data

The data to be registered on-chain.

public OnChainData Data { get; init; }

Property Value

OnChainData

Methods

Prepare(AccountAddress, AccountSequenceNumber, Expiry)

Prepares the account transaction payload for signing.

public PreparedAccountTransaction Prepare(AccountAddress sender, AccountSequenceNumber sequenceNumber, Expiry expiry)

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.

Returns

PreparedAccountTransaction

ToBytes()

Copies the "register data" account transaction in the binary format expected by the node to a byte array.

public override byte[] ToBytes()

Returns

byte[]

TryDeserial(ReadOnlySpan<byte>, out (RegisterData? RegisterData, string? Error))

Create a "register data" payload from a serialized as bytes.

public static bool TryDeserial(ReadOnlySpan<byte> bytes, out (RegisterData? RegisterData, string? Error) output)

Parameters

bytes ReadOnlySpan<byte>

The payload as bytes.

output (RegisterData RegisterData, string Error)

Where to write the result of the operation.

Returns

bool