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
FeaturesThe 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
Methods
DeserializeAsync(Stream)
Deserialize an InitPayload from a stream.
public static Task<InitPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe 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
StreamThe stream to serialize to.
Returns
- Task
A task that represents the asynchronous operation.