Class ToLocalOutputInfo
- Namespace
- NLightning.Domain.Bitcoin.Transactions.Outputs
- Assembly
- NLightning.Domain.dll
Represents the information needed to construct a to_local output in a commitment transaction. This follows the BOLT #3 specification for to_local outputs.
public class ToLocalOutputInfo : IOutputInfo
- Inheritance
-
ToLocalOutputInfo
- Implements
- Inherited Members
Constructors
ToLocalOutputInfo(LightningMoney, CompactPubKey, CompactPubKey, ushort)
Creates a new instance of ToLocalOutputInfo.
public ToLocalOutputInfo(LightningMoney amount, CompactPubKey localDelayedPaymentPubKey, CompactPubKey revocationPubKey, ushort toSelfDelay)
Parameters
amount
LightningMoneylocalDelayedPaymentPubKey
CompactPubKeyrevocationPubKey
CompactPubKeytoSelfDelay
ushort
Properties
Amount
Gets the amount of the output.
public LightningMoney Amount { get; }
Property Value
Index
Gets or sets the index of the output in the transaction once it's created.
public ushort? Index { get; set; }
Property Value
LocalDelayedPaymentPubKey
Gets the local's delayed payment public key.
public CompactPubKey LocalDelayedPaymentPubKey { get; }
Property Value
OutputType
Gets the type of the output.
public OutputType OutputType { get; }
Property Value
RevocationPubKey
Gets the remote's revocation public key.
public CompactPubKey RevocationPubKey { get; }
Property Value
ToSelfDelay
Gets the CSV delay for the to_local output.
public ushort ToSelfDelay { get; }
Property Value
TransactionId
Gets or sets the transaction ID of the output once it's created.
public TxId? TransactionId { get; set; }
Property Value
- TxId?