Table of Contents

Interface IArkContractParser

Namespace
NArk.Abstractions.Contracts
Assembly
NArk.Abstractions.dll

Parses a typed Arkade contract from its serialized key-value data.

public interface IArkContractParser

Properties

Type

Contract type discriminator this parser handles (e.g. "vtxo", "boarding").

string Type { get; }

Property Value

string

Methods

GetContractData(string)

Splits an arkcontract=… string into its key-value parameters.

public static Dictionary<string, string> GetContractData(string contract)

Parameters

contract string

Returns

Dictionary<string, string>

Parse(Dictionary<string, string>, Network)

Parses a contract from serialized data. Returns null when the data is not valid for this type.

ArkContract? Parse(Dictionary<string, string> contractData, Network network)

Parameters

contractData Dictionary<string, string>
network Network

Returns

ArkContract