Table of Contents

Class AssetIdentifier

Namespace
NArk.ArkadeIntents.SolverRegistry
Assembly
NArk.ArkadeIntents.dll

A canonical CAIP-19 asset identity, including its settlement chain.

public sealed record AssetIdentifier : IEquatable<AssetIdentifier>
Inheritance
AssetIdentifier
Implements
Inherited Members

Properties

Asset

The asset namespace and reference after the chain.

public string Asset { get; }

Property Value

string

ChainReference

The network name or EIP-155 chain id.

public string ChainReference { get; }

Property Value

string

Namespace

The chain namespace: arkade, bolt11, bitcoin, or eip155.

public string Namespace { get; }

Property Value

string

Value

The canonical identity, preserved byte for byte.

public string Value { get; }

Property Value

string

Methods

FromLegacy(string, string, string)

Converts an old registry identifier using an explicitly supplied network and rail.

public static AssetIdentifier FromLegacy(string id, string network, string corridor = "arkade")

Parameters

id string
network string
corridor string

Returns

AssetIdentifier

Parse(string)

Parses a supported canonical identifier without case folding or inferred networks.

public static AssetIdentifier Parse(string value)

Parameters

value string

Returns

AssetIdentifier

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.