Table of Contents

Class ToRemoteOutputInfo

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

Represents the information needed to construct a to_remote output in a commitment transaction. This follows the BOLT #3 specification for to_remote outputs.

public class ToRemoteOutputInfo : IOutputInfo
Inheritance
ToRemoteOutputInfo
Implements
Inherited Members

Constructors

ToRemoteOutputInfo(LightningMoney, CompactPubKey, bool)

Creates a new instance of ToRemoteOutputInfo.

public ToRemoteOutputInfo(LightningMoney amount, CompactPubKey remotePaymentPubKey, bool useAnchors = false)

Parameters

amount LightningMoney
remotePaymentPubKey CompactPubKey
useAnchors bool

Properties

Amount

Gets the amount of the output.

public LightningMoney Amount { get; }

Property Value

LightningMoney

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

RemotePaymentPubKey

Gets the remote's payment public key.

public CompactPubKey RemotePaymentPubKey { get; }

Property Value

CompactPubKey

TransactionId

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

public TxId? TransactionId { get; set; }

Property Value

TxId?

UseAnchors

Gets whether this to_remote output should use anchors.

public bool UseAnchors { get; }

Property Value

bool