Table of Contents

Class HtlcOutputInfo

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

Base class for HTLC output information.

public abstract class HtlcOutputInfo : IOutputInfo
Inheritance
HtlcOutputInfo
Implements
Derived
Inherited Members

Constructors

HtlcOutputInfo(Htlc, CompactPubKey, CompactPubKey, CompactPubKey, bool)

Creates a new instance of HtlcOutputInfo.

protected HtlcOutputInfo(Htlc htlc, CompactPubKey localHtlcPubKey, CompactPubKey remoteHtlcPubKey, CompactPubKey revocationPubKey, bool isOffered)

Parameters

htlc Htlc
localHtlcPubKey CompactPubKey
remoteHtlcPubKey CompactPubKey
revocationPubKey CompactPubKey
isOffered bool

Properties

Amount

Gets the amount of the output.

public LightningMoney Amount { get; }

Property Value

LightningMoney

CltvExpiry

Gets the CLTV expiry for this HTLC.

public uint CltvExpiry { get; }

Property Value

uint

Htlc

Gets the HTLC this output is based on.

public Htlc Htlc { get; }

Property Value

Htlc

Index

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

public ushort? Index { get; set; }

Property Value

ushort?

LocalHtlcPubKey

Gets the local HTLC public key.

public CompactPubKey LocalHtlcPubKey { get; }

Property Value

CompactPubKey

OutputType

Gets the type of the output.

public OutputType OutputType { get; }

Property Value

OutputType

PaymentHash

Gets the payment hash for this HTLC.

public Hash PaymentHash { get; }

Property Value

Hash

RemoteHtlcPubKey

Gets the remote HTLC public key.

public CompactPubKey RemoteHtlcPubKey { get; }

Property Value

CompactPubKey

RevocationPubKey

Gets the revocation public key.

public CompactPubKey RevocationPubKey { 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?