Table of Contents

Class ChannelReadyPayload

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

Represents the payload for the channel_ready message.

public class ChannelReadyPayload : IMessagePayload
Inheritance
ChannelReadyPayload
Implements
Inherited Members

Remarks

Initializes a new instance of the ChannelReadyPayload class.

Constructors

ChannelReadyPayload(ChannelId, PubKey)

Represents the payload for the channel_ready message.

public ChannelReadyPayload(ChannelId channelId, PubKey secondPerCommitmentPoint)

Parameters

channelId ChannelId

The channel ID.

secondPerCommitmentPoint PubKey

Remarks

Initializes a new instance of the ChannelReadyPayload class.

Properties

ChannelId

Gets the channel ID.

public ChannelId ChannelId { get; }

Property Value

ChannelId

SecondPerCommitmentPoint

public PubKey SecondPerCommitmentPoint { get; }

Property Value

PubKey

Methods

DeserializeAsync(Stream)

Deserializes the payload from a stream.

public static Task<ChannelReadyPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<ChannelReadyPayload>

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.