Class TxAddOutputPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents a tx_add_output payload.
public class TxAddOutputPayload : IMessagePayload
- Inheritance
-
TxAddOutputPayload
- Implements
- Inherited Members
Remarks
The tx_add_output payload is used to add an output to the transaction.
Constructors
TxAddOutputPayload(LightningMoney, ChannelId, Script, ulong)
Initializes a new instance of the TxAddOutputPayload class.
public TxAddOutputPayload(LightningMoney amount, ChannelId channelId, Script script, ulong serialId)
Parameters
amount
LightningMoneyThe sats amount.
channelId
ChannelIdThe channel id.
script
ScriptThe spending script.
serialId
ulongThe serial id.
Exceptions
- ArgumentException
ScriptPubKey length is out of bounds.
Properties
Amount
The sats amount.
public LightningMoney Amount { get; }
Property Value
ChannelId
The channel id.
public ChannelId ChannelId { get; }
Property Value
Script
The spending script.
public Script Script { get; }
Property Value
- Script
SerialId
The serial id.
public ulong SerialId { get; }