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
LightningMoneyremoteFundingPubKey
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
PubKeyThe remote funding public key.
txOut
TxOutThe TxOut object.
Returns
- ToAnchorOutput
A ToAnchorOutput object.