Table of Contents

Class AcceptChannel2Message

Namespace
NLightning.Bolts.BOLT2.Messages
Assembly
NLightning.Bolts.dll

Represents an open_channel2 message.

public sealed class AcceptChannel2Message : BaseMessage, IMessage
Inheritance
AcceptChannel2Message
Implements
Inherited Members

Remarks

The accept_channel2 message is sent to the initiator in order to accept the channel opening. The message type is 65.

Constructors

AcceptChannel2Message(AcceptChannel2Payload, UpfrontShutdownScriptTlv?, ChannelTypeTlv?, RequireConfirmedInputsTlv?)

public AcceptChannel2Message(AcceptChannel2Payload payload, UpfrontShutdownScriptTlv? upfrontShutdownScriptTlv = null, ChannelTypeTlv? channelTypeTlv = null, RequireConfirmedInputsTlv? requireConfirmedInputsTlv = null)

Parameters

payload AcceptChannel2Payload
upfrontShutdownScriptTlv UpfrontShutdownScriptTlv
channelTypeTlv ChannelTypeTlv
requireConfirmedInputsTlv RequireConfirmedInputsTlv

Properties

ChannelTypeTlv

Optional ChannelTypeTlv

public ChannelTypeTlv? ChannelTypeTlv { get; }

Property Value

ChannelTypeTlv

Payload

The payload of the message.

public AcceptChannel2Payload Payload { get; }

Property Value

AcceptChannel2Payload

RequireConfirmedInputsTlv

Optional RequireConfirmedInputsTlv

public RequireConfirmedInputsTlv? RequireConfirmedInputsTlv { get; }

Property Value

RequireConfirmedInputsTlv

UpfrontShutdownScriptTlv

Optional UpfrontShutdownScriptTlv

public UpfrontShutdownScriptTlv? UpfrontShutdownScriptTlv { get; }

Property Value

UpfrontShutdownScriptTlv

Methods

DeserializeAsync(Stream)

Deserialize a OpenChannel2Message from a stream.

public static Task<AcceptChannel2Message> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<AcceptChannel2Message>

The deserialized AcceptChannel2Message.

Exceptions

MessageSerializationException

Error deserializing OpenChannel2Message