Table of Contents

Class ArkPaymentContract

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

Constructors

ArkPaymentContract(OutputDescriptor, Sequence, OutputDescriptor)

public ArkPaymentContract(OutputDescriptor server, Sequence exitDelay, OutputDescriptor userDescriptor)

Parameters

server OutputDescriptor
exitDelay Sequence
userDescriptor OutputDescriptor

Fields

ContractType

public const string ContractType = "Payment"

Field Value

string

Properties

DefaultScope

Payment funds live off-chain as a VTXO.

public override ContractScope DefaultScope { get; }

Property Value

ContractScope

Type

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

public override string Type { get; }

Property Value

string

User

Output descriptor for the user key.

public OutputDescriptor User { get; }

Property Value

OutputDescriptor

Methods

CollaborativePath()

public ScriptBuilder CollaborativePath()

Returns

ScriptBuilder

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>

Parse(Dictionary<string, string>, Network)

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

Parameters

contractData Dictionary<string, string>
network Network

Returns

ArkContract

UnilateralPath()

public ScriptBuilder UnilateralPath()

Returns

ScriptBuilder