Class UpdateFulfillHtlcPayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents the payload for the update_fulfill_htlc message.
public class UpdateFulfillHtlcPayload : IMessagePayload
- Inheritance
-
UpdateFulfillHtlcPayload
- Implements
- Inherited Members
Remarks
Initializes a new instance of the UpdateFulfillHtlcPayload class.
Constructors
UpdateFulfillHtlcPayload(ChannelId, ulong, ReadOnlyMemory<byte>)
Represents the payload for the update_fulfill_htlc message.
public UpdateFulfillHtlcPayload(ChannelId channelId, ulong id, ReadOnlyMemory<byte> paymentPreimage)
Parameters
channelId
ChannelIdid
ulongpaymentPreimage
ReadOnlyMemory<byte>
Remarks
Initializes a new instance of the UpdateFulfillHtlcPayload class.
Properties
ChannelId
The channel_id this message refers to
public ChannelId ChannelId { get; }
Property Value
Id
The htlc id
public ulong Id { get; }
Property Value
PaymentPreimage
The payment_preimage for this htlc
public ReadOnlyMemory<byte> PaymentPreimage { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserializes the payload from a stream.
public static Task<UpdateFulfillHtlcPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<UpdateFulfillHtlcPayload>
The deserialized payload.
Exceptions
- PayloadSerializationException
Error deserializing Payload
SerializeAsync(Stream)
Serializes the message payload to a stream.
public Task SerializeAsync(Stream stream)
Parameters
stream
StreamThe stream to serialize to.
Returns
- Task
A task that represents the asynchronous operation.