Table of Contents

Class NetworksTlv

Namespace
NLightning.Common.TLVs
Assembly
NLightning.Common.dll

Networks TLV.

public class NetworksTlv : Tlv, IEquatable<Tlv>
Inheritance
NetworksTlv
Implements
Inherited Members

Remarks

The networks TLV is used in the InitMessage to communicate the networks that the node supports.

Constructors

NetworksTlv()

public NetworksTlv()

NetworksTlv(IEnumerable<ChainHash>)

public NetworksTlv(IEnumerable<ChainHash> chainHashes)

Parameters

chainHashes IEnumerable<ChainHash>

Properties

ChainHashes

The chain hashes.

public IEnumerable<ChainHash>? ChainHashes { get; }

Property Value

IEnumerable<ChainHash>

Remarks

The chain hashes are the hashes of the chains that the node supports.

Methods

DeserializeAsync(Stream)

Deserialize a NetworksTLV from a stream.

public static Task<NetworksTlv> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<NetworksTlv>

The deserialized NetworksTLV.

Exceptions

SerializationException

Error deserializing NetworksTLV

SerializeAsync(Stream)

Serialize the TLV to a stream

public Task SerializeAsync(Stream stream)

Parameters

stream Stream

The stream to write to

Returns

Task

A task that represents the asynchronous operation

Exceptions

SerializationException

Error serializing TLV or any of it's parts