Table of Contents

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 LightningMoney

The sats amount.

channelId ChannelId

The channel id.

script Script

The spending script.

serialId ulong

The serial id.

Exceptions

ArgumentException

ScriptPubKey length is out of bounds.

Properties

Amount

The sats amount.

public LightningMoney Amount { get; }

Property Value

LightningMoney

ChannelId

The channel id.

public ChannelId ChannelId { get; }

Property Value

ChannelId

Script

The spending script.

public Script Script { get; }

Property Value

Script

SerialId

The serial id.

public ulong SerialId { get; }

Property Value

ulong

See Also