Class TxRemoveInputPayload
- Namespace
- NLightning.Bolts.BOLT2.Payloads
- Assembly
- NLightning.Bolts.dll
Represents a tx_remove_input payload.
public class TxRemoveInputPayload : IMessagePayload
- Inheritance
-
TxRemoveInputPayload
- Implements
- Inherited Members
Remarks
The tx_remove_input payload is used to remove an input from the transaction.
Constructors
TxRemoveInputPayload(ChannelId, ulong)
Represents a tx_remove_input payload.
public TxRemoveInputPayload(ChannelId channelId, ulong serialId)
Parameters
Remarks
The tx_remove_input payload is used to remove an input 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 TxRemoveInputPayload from a stream.
public static Task<TxRemoveInputPayload> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<TxRemoveInputPayload>
The deserialized TxRemoveInputPayload.
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.