Table of Contents

Class ClosingSignedPayload

Namespace
NLightning.Bolts.BOLT2.Payloads
Assembly
NLightning.Bolts.dll

Represents the payload for the closing_signed message.

public class ClosingSignedPayload : IMessagePayload
Inheritance
ClosingSignedPayload
Implements
Inherited Members

Remarks

Initializes a new instance of the ClosingSignedPayload class.

Constructors

ClosingSignedPayload(ChannelId, ulong, ECDSASignature)

public ClosingSignedPayload(ChannelId channelId, ulong feeSatoshis, ECDSASignature signature)

Parameters

channelId ChannelId
feeSatoshis ulong
signature ECDSASignature

Properties

ChannelId

The channel_id is used to identify this channel.

public ChannelId ChannelId { get; set; }

Property Value

ChannelId

FeeSatoshis

funding_satoshis is the amount the acceptor is putting into the channel.

public ulong FeeSatoshis { get; set; }

Property Value

ulong

Signature

The signature for the closing transaction

public ECDSASignature Signature { get; }

Property Value

ECDSASignature

Methods

DeserializeAsync(Stream)

Deserializes the payload from a stream.

public static Task<ClosingSignedPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<ClosingSignedPayload>

The deserialized payload.

Exceptions

PayloadSerializationException

Error deserializing Payload

SerializeAsync(Stream)

Serializes the message payload to a stream.

public Task SerializeAsync(Stream stream)

Parameters

stream Stream

The stream to serialize to.

Returns

Task

A task that represents the asynchronous operation.