Class ShortChannelIdTlv
- Namespace
- NLightning.Common.TLVs
- Assembly
- NLightning.Common.dll
Short Channel Id TLV.
public class ShortChannelIdTlv : Tlv, IEquatable<Tlv>
- Inheritance
-
ShortChannelIdTlv
- Implements
- Inherited Members
Remarks
The short channel id TLV is used in the ChannelReadyMessage to communicate the channel type that should be opened.
Constructors
ShortChannelIdTlv(ShortChannelId)
public ShortChannelIdTlv(ShortChannelId shortChannelId)
Parameters
shortChannelId
ShortChannelId
Properties
ShortChannelId
The shutdown script to be used when closing the channel
public ShortChannelId ShortChannelId { get; }
Property Value
Methods
FromTlv(Tlv)
Cast ShortChannelIdTlv from a Tlv.
public static ShortChannelIdTlv FromTlv(Tlv tlv)
Parameters
tlv
TlvThe tlv to cast from.
Returns
- ShortChannelIdTlv
The cast ShortChannelIdTlv.
Exceptions
- InvalidCastException
Error casting ShortChannelIdTlv