Table of Contents

Class TxAbortPayload

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

Represents the payload for the tx_abort message.

public class TxAbortPayload : IMessagePayload
Inheritance
TxAbortPayload
Implements
Inherited Members

Remarks

Initializes a new instance of the TxAbortPayload class.

Constructors

TxAbortPayload(ChannelId, byte[])

Represents the payload for the tx_abort message.

public TxAbortPayload(ChannelId channelId, byte[] data)

Parameters

channelId ChannelId

The channel ID.

data byte[]

The data.

Remarks

Initializes a new instance of the TxAbortPayload class.

Properties

ChannelId

Gets the channel ID.

public ChannelId ChannelId { get; }

Property Value

ChannelId

Data

Gets the data.

public byte[] Data { get; }

Property Value

byte[]

Methods

DeserializeAsync(Stream)

Deserializes the payload from a stream.

public static Task<TxAbortPayload> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<TxAbortPayload>

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.