Table of Contents

Class UpfrontShutdownScriptTlv

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

Upfront Shutdown Script TLV.

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

Remarks

The upfront shutdown script TLV is used in the AcceptChannel2Message to communicate the script to be used when the channel is being closed.

Constructors

UpfrontShutdownScriptTlv(Script)

public UpfrontShutdownScriptTlv(Script shutdownScriptPubkey)

Parameters

shutdownScriptPubkey Script

Properties

ShutdownScriptPubkey

The shutdown script to be used when closing the channel

public Script ShutdownScriptPubkey { get; }

Property Value

Script

Methods

FromTlv(Tlv)

Cast UpfrontShutdownScriptTlv from a Tlv.

public static UpfrontShutdownScriptTlv FromTlv(Tlv tlv)

Parameters

tlv Tlv

The tlv to cast from.

Returns

UpfrontShutdownScriptTlv

The cast UpfrontShutdownScriptTlv.

Exceptions

SerializationException

Error casting UpfrontShutdownScriptTlv