Class UpdateAddHtlcPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents the payload for the update_add_htlc message.
public class UpdateAddHtlcPayload : IMessagePayload
- Inheritance
-
UpdateAddHtlcPayload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the TxAckRbfPayload class.
Constructors
UpdateAddHtlcPayload(LightningMoney, ChannelId, uint, ulong, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>?)
Represents the payload for the update_add_htlc message.
public UpdateAddHtlcPayload(LightningMoney amount, ChannelId channelId, uint cltvExpiry, ulong id, ReadOnlyMemory<byte> paymentHash, ReadOnlyMemory<byte>? onionRoutingPacket = null)
Parameters
amount
LightningMoneychannelId
ChannelIdThe channel ID.
cltvExpiry
uintid
ulongpaymentHash
ReadOnlyMemory<byte>onionRoutingPacket
ReadOnlyMemory<byte>?
Remarks
Initializes a new instance of the TxAckRbfPayload class.
Properties
Amount
AmountSats offered for this Htlc
public LightningMoney Amount { get; }
Property Value
ChannelId
Gets the channel ID.
public ChannelId ChannelId { get; }
Property Value
CltvExpiry
The Cltv Expiration
public uint CltvExpiry { get; }
Property Value
Id
Offer Id
public ulong Id { get; }
Property Value
Remarks
This should be 0 for the first offer for the channel and must be incremented by 1 for each successive offer
OnionRoutingPacket
public ReadOnlyMemory<byte>? OnionRoutingPacket { get; }
Property Value
PaymentHash
The payment hash
public ReadOnlyMemory<byte> PaymentHash { get; }