Table of Contents

Class BaseOutput

Namespace
NLightning.Infrastructure.Bitcoin.Outputs
Assembly
NLightning.Infrastructure.Bitcoin.dll

Represents a transaction output.

public abstract class BaseOutput : IOutput
Inheritance
BaseOutput
Implements
Derived
Inherited Members

Constructors

BaseOutput(LightningMoney, Script)

protected BaseOutput(LightningMoney amount, Script redeemScript)

Parameters

amount LightningMoney
redeemScript Script

BaseOutput(LightningMoney, Script, Script)

protected BaseOutput(LightningMoney amount, Script redeemScript, Script scriptPubKey)

Parameters

amount LightningMoney
redeemScript Script
scriptPubKey Script

Properties

Amount

Gets the amount of the output.

public LightningMoney Amount { get; set; }

Property Value

LightningMoney

BitcoinScriptPubKey

Gets the scriptPubKey of the output.

public BitcoinScript BitcoinScriptPubKey { get; set; }

Property Value

BitcoinScript

Index

Gets or sets the index of the output in the transaction.

public uint Index { get; set; }

Property Value

uint

RedeemBitcoinScript

Gets the redeemScript of the output, if applicable.

public BitcoinScript RedeemBitcoinScript { get; set; }

Property Value

BitcoinScript

ScriptType

public abstract ScriptType ScriptType { get; }

Property Value

ScriptType

TransactionId

Gets or sets the transaction ID of the output.

public TxId TransactionId { get; set; }

Property Value

TxId

Methods

CompareTo(IOutput?)

public int CompareTo(IOutput? other)

Parameters

other IOutput

Returns

int

ToCoin()

public ScriptCoin ToCoin()

Returns

ScriptCoin

ToTxOut()

Converts the output to a NBitcoin.TxOut.

public TxOut ToTxOut()

Returns

TxOut

TxOut object.