Table of Contents

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 LightningMoney
channelId ChannelId

The channel ID.

cltvExpiry uint
id ulong
paymentHash 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

LightningMoney

ChannelId

Gets the channel ID.

public ChannelId ChannelId { get; }

Property Value

ChannelId

CltvExpiry

The Cltv Expiration

public uint CltvExpiry { get; }

Property Value

uint

Id

Offer Id

public ulong Id { get; }

Property Value

ulong

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

ReadOnlyMemory<byte>?

PaymentHash

The payment hash

public ReadOnlyMemory<byte> PaymentHash { get; }

Property Value

ReadOnlyMemory<byte>