Table of Contents

Class ChannelTypeTlv

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

Channel Type TLV.

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

Remarks

The channels type TLV is used in the AcceptChannel2Message to communicate the channel type that should be opened.

Constructors

ChannelTypeTlv(byte[])

public ChannelTypeTlv(byte[] channelType)

Parameters

channelType byte[]

Properties

ChannelType

The channel type

public byte[] ChannelType { get; }

Property Value

byte[]

Methods

FromTlv(Tlv)

Cast ChannelTypeTlv from a Tlv.

public static ChannelTypeTlv FromTlv(Tlv tlv)

Parameters

tlv Tlv

The tlv to cast from.

Returns

ChannelTypeTlv

The cast ChannelTypeTlv.

Exceptions

InvalidCastException

Error casting ChannelTypeTlv