Class TxRemoveOutputPayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents a tx_remove_output payload.
public class TxRemoveOutputPayload : IMessagePayload
- Inheritance
-
TxRemoveOutputPayload
- Implements
- Inherited Members
Remarks
The tx_remove_output payload is used to remove an output from the transaction.
Constructors
TxRemoveOutputPayload(ChannelId, ulong)
Represents a tx_remove_output payload.
public TxRemoveOutputPayload(ChannelId channelId, ulong serialId)
Parameters
Remarks
The tx_remove_output payload is used to remove an output from the transaction.
- See Also
Properties
ChannelId
The channel id.
public ChannelId ChannelId { get; }
Property Value
SerialId
The serial id.
public ulong SerialId { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a TxRemoveOutputPayload from a stream.
public static Task<TxRemoveOutputPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<TxRemoveOutputPayload>
The deserialized TxRemoveOutputPayload.
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.