Class ShutdownMessage
- Namespace
- NLightning.Bolts.BOLT2.Messages
- Assembly
- NLightning.Bolts.dll
Represents a shutdown message.
public sealed class ShutdownMessage : BaseMessage, IMessage
- Inheritance
-
ShutdownMessage
- Implements
- Inherited Members
Remarks
The shutdown message is sent by either node to initiate closing, along with the scriptpubkey it wants to be paid to. The message type is 38.
Constructors
ShutdownMessage(ShutdownPayload)
Represents a shutdown message.
public ShutdownMessage(ShutdownPayload payload)
Parameters
payload
ShutdownPayload
Remarks
The shutdown message is sent by either node to initiate closing, along with the scriptpubkey it wants to be paid to. The message type is 38.
Properties
Payload
The payload of the message.
public ShutdownPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a ShutdownMessage from a stream.
public static Task<ShutdownMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<ShutdownMessage>
The deserialized ShutdownMessage.
Exceptions
- MessageSerializationException
Error deserializing ShutdownMessage