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
OnChainDataThe data to be registered on-chain.
Properties
Data
The data to be registered on-chain.
public OnChainData Data { get; init; }
Property Value
Methods
Prepare(AccountAddress, AccountSequenceNumber, Expiry)
Prepares the account transaction payload for signing.
public PreparedAccountTransaction Prepare(AccountAddress sender, AccountSequenceNumber sequenceNumber, Expiry expiry)
Parameters
sender
AccountAddressAddress of the sender of the transaction.
sequenceNumber
AccountSequenceNumberAccount sequence number to use for the transaction.
expiry
ExpiryExpiration time of the transaction.
Returns
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.