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
ChannelReadyPayloadshortChannelIdTlv
ShortChannelIdTlv
Properties
Payload
The payload of the message.
public ChannelReadyPayload Payload { get; }
Property Value
ShortChannelIdTlv
public ShortChannelIdTlv? ShortChannelIdTlv { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a ChannelReadyMessage from a stream.
public static Task<ChannelReadyMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<ChannelReadyMessage>
The deserialized ChannelReadyMessage.
Exceptions
- MessageSerializationException
Error deserializing ChannelReadyMessage