Class TxAddOutputPayload
- Namespace
- NLightning.Domain.Protocol.Payloads
- Assembly
- NLightning.Domain.dll
Represents a tx_add_output payload.
public class TxAddOutputPayload : IChannelMessagePayload, 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, BitcoinScript, ulong)
Initializes a new instance of the TxAddOutputPayload class.
public TxAddOutputPayload(LightningMoney amount, ChannelId channelId, BitcoinScript script, ulong serialId)
Parameters
amount
LightningMoneyThe sats amount.
channelId
ChannelIdThe channel id.
script
BitcoinScriptThe 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 BitcoinScript Script { get; }
Property Value
SerialId
The serial id.
public ulong SerialId { get; }