Table of Contents

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 InitPayload
networksTlv NetworksTlv

Properties

NetworksTlv

public NetworksTlv? NetworksTlv { get; }

Property Value

NetworksTlv

Payload

The payload of the message.

public InitPayload Payload { get; }

Property Value

InitPayload

Methods

DeserializeAsync(Stream)

Deserialize an InitMessage from a stream.

public static Task<InitMessage> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<InitMessage>

The deserialized InitMessage.

Exceptions

MessageSerializationException

Error deserializing InitMessage