Table of Contents

Class UpdateAddHtlcMessage

Namespace
NLightning.Bolts.BOLT2.Messages
Assembly
NLightning.Bolts.dll

Represents a update_add_htlc message.

public sealed class UpdateAddHtlcMessage : BaseMessage, IMessage
Inheritance
UpdateAddHtlcMessage
Implements
Inherited Members

Remarks

The update_add_htlc message offers a new htlc to the peer. The message type is 128.

Constructors

UpdateAddHtlcMessage(UpdateAddHtlcPayload, BlindedPathTlv?)

public UpdateAddHtlcMessage(UpdateAddHtlcPayload payload, BlindedPathTlv? blindedPathTlv = null)

Parameters

payload UpdateAddHtlcPayload
blindedPathTlv BlindedPathTlv

Properties

BlindedPathTlv

public BlindedPathTlv? BlindedPathTlv { get; }

Property Value

BlindedPathTlv

Payload

The payload of the message.

public UpdateAddHtlcPayload Payload { get; }

Property Value

UpdateAddHtlcPayload

Methods

DeserializeAsync(Stream)

Deserialize a UpdateAddHtlcMessage from a stream.

public static Task<UpdateAddHtlcMessage> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<UpdateAddHtlcMessage>

The deserialized UpdateAddHtlcMessage.

Exceptions

MessageSerializationException

Error deserializing UpdateAddHtlcMessage