Table of Contents

Class ToAnchorOutput

Namespace
NLightning.Infrastructure.Bitcoin.Outputs
Assembly
NLightning.Infrastructure.Bitcoin.dll

Represents a to_local_anchor/to_remote_anchor output in a commitment transaction.

public class ToAnchorOutput : BaseOutput, IOutput
Inheritance
ToAnchorOutput
Implements
Inherited Members

Constructors

ToAnchorOutput(LightningMoney, PubKey)

public ToAnchorOutput(LightningMoney amount, PubKey remoteFundingPubKey)

Parameters

amount LightningMoney
remoteFundingPubKey PubKey

Properties

RemoteFundingPubKey

public PubKey RemoteFundingPubKey { get; set; }

Property Value

PubKey

ScriptType

public override ScriptType ScriptType { get; }

Property Value

ScriptType

Methods

FromTxOut(PubKey, TxOut)

Creates a ToAnchorOutput object from a NBitcoin.TxOut.

public static ToAnchorOutput FromTxOut(PubKey remoteFundingPubKey, TxOut txOut)

Parameters

remoteFundingPubKey PubKey

The remote funding public key.

txOut TxOut

The TxOut object.

Returns

ToAnchorOutput

A ToAnchorOutput object.