Table of Contents

Class ModuleReference

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

A reference to a smart contract module deployed on the chain.

public sealed record ModuleReference : Hash, IEquatable<Hash>, IEquatable<ModuleReference>
Inheritance
ModuleReference
Implements
Inherited Members

Constructors

ModuleReference(string)

Initializes a new instance.

public ModuleReference(string hexString)

Parameters

hexString string

A hash represented as a length-64 hex encoded string.

Exceptions

ArgumentException

The supplied string is not a 64-character hex encoded string.

Methods

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

Create a module reference from a byte array.

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

Parameters

bytes ReadOnlySpan<byte>

The serialized module reference.

output (ModuleReference Ref, string Error)

Where to write the result of the operation.

Returns

bool