Table of Contents

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 ChannelId
id ulong
paymentPreimage 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

ChannelId

Id

The htlc id

public ulong Id { get; }

Property Value

ulong

PaymentPreimage

The payment_preimage for this htlc

public ReadOnlyMemory<byte> PaymentPreimage { get; }

Property Value

ReadOnlyMemory<byte>

Methods

DeserializeAsync(Stream)

Deserializes the payload from a stream.

public static Task<UpdateFulfillHtlcPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The 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 Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.