Class TxAbortMessage
- Namespace
- NLightning.Bolts.BOLT2.Messages
- Assembly
- NLightning.Bolts.dll
Represents a tx_abort message.
public sealed class TxAbortMessage : BaseMessage, IMessage
- Inheritance
-
TxAbortMessage
- Implements
- Inherited Members
Remarks
The tx_abort message allows for the cancellation of an in-progress negotiation. The message type is 74.
Constructors
TxAbortMessage(TxAbortPayload)
Represents a tx_abort message.
public TxAbortMessage(TxAbortPayload payload)
Parameters
payload
TxAbortPayloadThe tx_abort payload.
Remarks
The tx_abort message allows for the cancellation of an in-progress negotiation. The message type is 74.
Properties
Payload
The payload of the message.
public TxAbortPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a TxAbortMessage from a stream.
public static Task<TxAbortMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<TxAbortMessage>
The deserialized TxAbortMessage.
Exceptions
- MessageSerializationException
Error deserializing TxAbortMessage