Class OpenChannel2Payload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents the payload for the open_channel2 message.
public class OpenChannel2Payload : IMessagePayload
- Inheritance
-
OpenChannel2Payload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the OpenChannel2Payload class.
Constructors
OpenChannel2Payload(ChainHash, ChannelFlags, uint, PubKey, LightningMoney, PubKey, ulong, uint, PubKey, PubKey, LightningMoney, uint, ushort, LightningMoney, PubKey, PubKey, PubKey, ushort, ChannelId)
Represents the payload for the open_channel2 message.
public OpenChannel2Payload(ChainHash chainHash, ChannelFlags channelFlags, uint commitmentFeeRatePerKw, PubKey delayedPaymentBasepoint, LightningMoney dustLimitAmount, PubKey firstPerCommitmentPoint, ulong fundingAmount, uint fundingFeeRatePerKw, PubKey fundingPubKey, PubKey htlcBasepoint, LightningMoney htlcMinimumAmount, uint locktime, ushort maxAcceptedHtlcs, LightningMoney maxHtlcValueInFlight, PubKey paymentBasepoint, PubKey revocationBasepoint, PubKey secondPerCommitmentPoint, ushort toSelfDelay, ChannelId temporaryChannelId)
Parameters
chainHash
ChainHashchannelFlags
ChannelFlagscommitmentFeeRatePerKw
uintdelayedPaymentBasepoint
PubKeydustLimitAmount
LightningMoneyfirstPerCommitmentPoint
PubKeyfundingAmount
ulongfundingFeeRatePerKw
uintfundingPubKey
PubKeyhtlcBasepoint
PubKeyhtlcMinimumAmount
LightningMoneylocktime
uintmaxAcceptedHtlcs
ushortmaxHtlcValueInFlight
LightningMoneypaymentBasepoint
PubKeyrevocationBasepoint
PubKeysecondPerCommitmentPoint
PubKeytoSelfDelay
ushorttemporaryChannelId
ChannelId
Remarks
Initializes a new instance of the OpenChannel2Payload class.
Properties
ChainHash
The chain_hash value denotes the exact blockchain that the opened channel will reside within.
public ChainHash ChainHash { get; }
Property Value
ChannelFlags
Only the least-significant bit of channel_flags is currently defined: announce_channel. This indicates whether the initiator of the funding flow wishes to advertise this channel publicly to the network
public ChannelFlags ChannelFlags { get; }
Property Value
CommitmentFeeRatePerKw
commitment_feerate_perkw indicates the fee rate that will be paid for the commitment transaction in satoshi per 1000-weight, as described in BOLT-3, Appendix F
public uint CommitmentFeeRatePerKw { get; }
Property Value
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
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 sender is putting into the channel.
public LightningMoney FundingAmount { get; }
Property Value
FundingFeeRatePerKw
funding_feerate_perkw indicates the fee rate that the opening node will pay for the funding transaction in satoshi per 1000-weight, as described in BOLT-3, Appendix F
public uint FundingFeeRatePerKw { get; }
Property Value
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
Locktime
locktime is the locktime for the funding transaction.
public uint Locktime { get; }
Property Value
MaxAcceptedHtlcs
max_accepted_htlcs limits the number of outstanding HTLCs the remote node can offer.
public ushort MaxAcceptedHtlcs { get; }
Property Value
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
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
SecondPerCommitmentPoint
second_per_commitment_point is the per-commitment point used for the first commitment transaction
public PubKey SecondPerCommitmentPoint { 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
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; }