Table of Contents

Class UpdateFeePayload

Namespace
NLightning.Bolts.BOLT2.Payloads
Assembly
NLightning.Bolts.dll

Represents the payload for the update_fee message.

public class UpdateFeePayload : IMessagePayload
Inheritance
UpdateFeePayload
Implements
Inherited Members

Remarks

Initializes a new instance of the UpdateFeePayload class.

Constructors

UpdateFeePayload(ChannelId, uint)

Represents the payload for the update_fee message.

public UpdateFeePayload(ChannelId channelId, uint feeratePerKw)

Parameters

channelId ChannelId
feeratePerKw uint

Remarks

Initializes a new instance of the UpdateFeePayload class.

Properties

ChannelId

The channel_id this message refers to

public ChannelId ChannelId { get; }

Property Value

ChannelId

FeeratePerKw

The fee rate per kw

public uint FeeratePerKw { get; }

Property Value

uint

Methods

DeserializeAsync(Stream)

Deserializes the payload from a stream.

public static Task<UpdateFeePayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<UpdateFeePayload>

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.