Table of Contents

Class AcceptChannel2Payload

Namespace
NLightning.Domain.Protocol.Payloads
Assembly
NLightning.Domain.dll

Represents the payload for the accept_channel2 message.

public class AcceptChannel2Payload : IMessagePayload
Inheritance
AcceptChannel2Payload
Implements
Inherited Members

Remarks

Initializes a new instance of the AcceptChannel2Payload class.

Constructors

AcceptChannel2Payload(PubKey, LightningMoney, PubKey, LightningMoney, PubKey, PubKey, LightningMoney, ushort, LightningMoney, uint, PubKey, PubKey, ChannelId, ushort)

Represents the payload for the accept_channel2 message.

public AcceptChannel2Payload(PubKey delayedPaymentBasepoint, LightningMoney dustLimitAmount, PubKey firstPerCommitmentPoint, LightningMoney fundingAmount, PubKey fundingPubKey, PubKey htlcBasepoint, LightningMoney htlcMinimumAmount, ushort maxAcceptedHtlcs, LightningMoney maxHtlcValueInFlight, uint minimumDepth, PubKey paymentBasepoint, PubKey revocationBasepoint, ChannelId temporaryChannelId, ushort toSelfDelay)

Parameters

delayedPaymentBasepoint PubKey
dustLimitAmount LightningMoney
firstPerCommitmentPoint PubKey
fundingAmount LightningMoney
fundingPubKey PubKey
htlcBasepoint PubKey
htlcMinimumAmount LightningMoney
maxAcceptedHtlcs ushort
maxHtlcValueInFlight LightningMoney
minimumDepth uint
paymentBasepoint PubKey
revocationBasepoint PubKey
temporaryChannelId ChannelId
toSelfDelay ushort

Remarks

Initializes a new instance of the AcceptChannel2Payload class.

Properties

DelayedPaymentBasepoint

delayed_payment_basepoint is used to regenerate the scripts required for the penalty transaction

public PubKey DelayedPaymentBasepoint { get; }

Property Value

PubKey

DustLimitAmount

dust_limit_satoshis is the threshold below which outputs should not be generated for this node's commitment or HTLC transactions

public LightningMoney DustLimitAmount { get; }

Property Value

LightningMoney

FirstPerCommitmentPoint

first_per_commitment_point is the per-commitment point used for the first commitment transaction

public PubKey FirstPerCommitmentPoint { get; }

Property Value

PubKey

FundingAmount

funding_satoshis is the amount the acceptor is putting into the channel.

public LightningMoney FundingAmount { get; }

Property Value

LightningMoney

FundingPubKey

funding_pubkey is the public key in the 2-of-2 multisig script of the funding transaction output.

public PubKey FundingPubKey { get; }

Property Value

PubKey

HtlcBasepoint

htlc_basepoint is used to produce HTLC signatures for the protocol

public PubKey HtlcBasepoint { get; }

Property Value

PubKey

HtlcMinimumAmount

htlc_minimum_msat indicates the smallest value HTLC this node will accept.

public LightningMoney HtlcMinimumAmount { get; }

Property Value

LightningMoney

MaxAcceptedHtlcs

max_accepted_htlcs limits the number of outstanding HTLCs the remote node can offer.

public ushort MaxAcceptedHtlcs { get; }

Property Value

ushort

MaxHtlcValueInFlightAmount

max_htlc_value_in_flight_msat is a cap on total value of outstanding HTLCs offered by the remote node, which allows the local node to limit its exposure to HTLCs

public LightningMoney MaxHtlcValueInFlightAmount { get; }

Property Value

LightningMoney

MinimumDepth

minimum_depth is the number of blocks we consider reasonable to avoid double-spending of the funding transaction. In case channel_type includes option_zeroconf this MUST be 0

public uint MinimumDepth { get; }

Property Value

uint

PaymentBasepoint

payment_basepoint is used to produce payment signatures for the protocol

public PubKey PaymentBasepoint { get; }

Property Value

PubKey

RevocationBasepoint

revocation_basepoint is used to regenerate the scripts required for the penalty transaction

public PubKey RevocationBasepoint { get; }

Property Value

PubKey

TemporaryChannelId

The temporary_channel_id is used to identify this channel on a per-peer basis until the funding transaction is established, at which point it is replaced by the channel_id, which is derived from the funding transaction.

public ChannelId TemporaryChannelId { get; }

Property Value

ChannelId

ToSelfDelay

to_self_delay is how long (in blocks) the other node will have to wait in case of breakdown before redeeming its own funds.

public ushort ToSelfDelay { get; }

Property Value

ushort