Table of Contents

Class ChannelReadyMessage

Namespace
NLightning.Bolts.BOLT2.Messages
Assembly
NLightning.Bolts.dll

Represents a channel_ready message.

public sealed class ChannelReadyMessage : BaseMessage, IMessage
Inheritance
ChannelReadyMessage
Implements
Inherited Members

Remarks

The channel_ready message indicates that the funding transaction has sufficient confirms for channel use. The message type is 36.

Constructors

ChannelReadyMessage(ChannelReadyPayload, ShortChannelIdTlv?)

public ChannelReadyMessage(ChannelReadyPayload payload, ShortChannelIdTlv? shortChannelIdTlv = null)

Parameters

payload ChannelReadyPayload
shortChannelIdTlv ShortChannelIdTlv

Properties

Payload

The payload of the message.

public ChannelReadyPayload Payload { get; }

Property Value

ChannelReadyPayload

ShortChannelIdTlv

public ShortChannelIdTlv? ShortChannelIdTlv { get; }

Property Value

ShortChannelIdTlv

Methods

DeserializeAsync(Stream)

Deserialize a ChannelReadyMessage from a stream.

public static Task<ChannelReadyMessage> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<ChannelReadyMessage>

The deserialized ChannelReadyMessage.

Exceptions

MessageSerializationException

Error deserializing ChannelReadyMessage