Table of Contents

Class ArkNoteContract

Namespace
NArk.Core.Contracts
Assembly
NArk.Core.dll
public class ArkNoteContract : ArkContract
Inheritance
ArkNoteContract
Inherited Members

Constructors

ArkNoteContract(uint, byte[])

public ArkNoteContract(uint amount, byte[] preimage)

Parameters

amount uint
preimage byte[]

Fields

ContractType

public const string ContractType = "arknote"

Field Value

string

Properties

Amount

public uint Amount { get; }

Property Value

uint

DefaultScope

Arkade note funds live off-chain as a VTXO.

public override ContractScope DefaultScope { get; }

Property Value

ContractScope

Hash

public byte[] Hash { get; }

Property Value

byte[]

Outpoint

public OutPoint Outpoint { get; }

Property Value

OutPoint

Preimage

public byte[] Preimage { get; }

Property Value

byte[]

Type

Contract type discriminator string (e.g. "vtxo", "boarding").

public override string Type { get; }

Property Value

string

Methods

CreateClaimScript()

public HashLockTapScript CreateClaimScript()

Returns

HashLockTapScript

GetContractData()

Returns the key-value map of contract parameters used for serialization.

protected override Dictionary<string, string> GetContractData()

Returns

Dictionary<string, string>

GetScriptBuilders()

Returns the script builders for each tapscript leaf in the tree.

protected override IEnumerable<ScriptBuilder> GetScriptBuilders()

Returns

IEnumerable<ScriptBuilder>

GetTapScriptList()

Returns the compiled tapscript leaves that form this contract's script tree.

public override TapScript[] GetTapScriptList()

Returns

TapScript[]

Parse(Dictionary<string, string>, Network)

public static ArkContract Parse(Dictionary<string, string> arg, Network network)

Parameters

arg Dictionary<string, string>
network Network

Returns

ArkContract

Parse(string)

public static ArkNoteContract Parse(string note)

Parameters

note string

Returns

ArkNoteContract