Table of Contents

Class InitPayload

Namespace
NLightning.Bolts.BOLT1.Payloads
Assembly
NLightning.Bolts.dll

The init payload.

public class InitPayload : IMessagePayload
Inheritance
InitPayload
Implements
Inherited Members

Remarks

The init payload is used to communicate the features supported by the node.

Constructors

InitPayload(Features)

The init payload.

public InitPayload(Features features)

Parameters

features Features

The features supported by the node.

Remarks

The init payload is used to communicate the features supported by the node.

See Also

Properties

Features

The features supported by the node.

public Features Features { get; }

Property Value

Features

Methods

DeserializeAsync(Stream)

Deserialize an InitPayload from a stream.

public static Task<InitPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<InitPayload>

The deserialized InitPayload.

Exceptions

PayloadSerializationException

Error deserializing Payload

SerializeAsync(Stream)

Serializes the message payload to a stream.

public Task SerializeAsync(Stream stream)

Parameters

stream Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.

See Also