Table of Contents

Class AnchorOutputInfo

Namespace
NLightning.Domain.Bitcoin.Transactions.Outputs
Assembly
NLightning.Domain.dll

Represents the information needed to construct an anchor output in a commitment transaction. This follows the BOLT #3 specification for anchor outputs when option_anchors is negotiated.

public class AnchorOutputInfo : IOutputInfo
Inheritance
AnchorOutputInfo
Implements
Inherited Members

Constructors

AnchorOutputInfo(CompactPubKey, bool)

Creates a new instance of AnchorOutputInfo.

public AnchorOutputInfo(CompactPubKey fundingPubKey, bool isLocal)

Parameters

fundingPubKey CompactPubKey
isLocal bool

Properties

Amount

Gets the amount of the output.

public LightningMoney Amount { get; }

Property Value

LightningMoney

FundingPubKey

Gets the funding public key used for the anchor.

public CompactPubKey FundingPubKey { get; }

Property Value

CompactPubKey

Index

Gets or sets the index of the output in the transaction once it's created.

public ushort? Index { get; set; }

Property Value

ushort?

OutputType

Gets the type of the output.

public OutputType OutputType { get; }

Property Value

OutputType

TransactionId

Gets or sets the transaction ID of the output once it's created.

public TxId? TransactionId { get; set; }

Property Value

TxId?