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
UpdateAddHtlcPayloadblindedPathTlv
BlindedPathTlv
Properties
BlindedPathTlv
public BlindedPathTlv? BlindedPathTlv { get; }
Property Value
Payload
The payload of the message.
public UpdateAddHtlcPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a UpdateAddHtlcMessage from a stream.
public static Task<UpdateAddHtlcMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<UpdateAddHtlcMessage>
The deserialized UpdateAddHtlcMessage.
Exceptions
- MessageSerializationException
Error deserializing UpdateAddHtlcMessage