Class TxCompletePayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents a tx_complete payload.
public class TxCompletePayload : IMessagePayload
- Inheritance
-
TxCompletePayload
- Implements
- Inherited Members
Remarks
The tx_complete payload is used to indicate that the transaction is complete.
Constructors
TxCompletePayload(ChannelId)
Represents a tx_complete payload.
public TxCompletePayload(ChannelId channelId)
Parameters
channelId
ChannelIdThe channel id.
Remarks
The tx_complete payload is used to indicate that the transaction is complete.
- See Also
Properties
ChannelId
The channel id.
public ChannelId ChannelId { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserializes a TxCompletePayload from a stream.
public static Task<TxCompletePayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to read from.
Returns
- Task<TxCompletePayload>
The deserialized TxCompletePayload.
Exceptions
- PayloadSerializationException
Error deserializing Payload.
SerializeAsync(Stream)
Serializes the message payload to a stream.
public Task SerializeAsync(Stream stream)
Parameters
stream
StreamThe stream to serialize to.
Returns
- Task
A task that represents the asynchronous operation.