Class InitMessage
- Namespace
- NLightning.Bolts.BOLT1.Messages
- Assembly
- NLightning.Bolts.dll
Represents an init message.
public sealed class InitMessage : BaseMessage, IMessage
- Inheritance
-
InitMessage
- Implements
- Inherited Members
Remarks
The init message is used to communicate the features of the node. The message type is 16.
Constructors
InitMessage(InitPayload, NetworksTlv?)
public InitMessage(InitPayload payload, NetworksTlv? networksTlv = null)
Parameters
payload
InitPayloadnetworksTlv
NetworksTlv
Properties
NetworksTlv
public NetworksTlv? NetworksTlv { get; }
Property Value
Payload
The payload of the message.
public InitPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize an InitMessage from a stream.
public static Task<InitMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<InitMessage>
The deserialized InitMessage.
Exceptions
- MessageSerializationException
Error deserializing InitMessage