Class TxAddInputPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents a tx_add_input payload.
public class TxAddInputPayload : IMessagePayload
- Inheritance
-
TxAddInputPayload
- Implements
- Inherited Members
Remarks
The tx_add_input payload is used to add an input to the transaction.
Constructors
TxAddInputPayload(ChannelId, ulong, byte[], uint, uint)
Initializes a new instance of the TxAddInputPayload class.
public TxAddInputPayload(ChannelId channelId, ulong serialId, byte[] prevTx, uint prevTxVout, uint sequence)
Parameters
channelId
ChannelIdThe channel id.
serialId
ulongThe serial id.
prevTx
byte[]The previous transaction id.
prevTxVout
uintThe previous transaction vout.
sequence
uintThe sequence.
Exceptions
- ArgumentException
Sequence is out of bounds.
Properties
ChannelId
The channel id.
public ChannelId ChannelId { get; }
Property Value
PrevTx
The previous transaction id.
public byte[] PrevTx { get; }
Property Value
- byte[]
PrevTxVout
The previous transaction vout.
public uint PrevTxVout { get; }
Property Value
Sequence
The sequence.
public uint Sequence { get; }
Property Value
SerialId
The serial id.
public ulong SerialId { get; }