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
LightningMoneyredeemScript
Script
BaseOutput(LightningMoney, Script, Script)
protected BaseOutput(LightningMoney amount, Script redeemScript, Script scriptPubKey)
Parameters
amount
LightningMoneyredeemScript
ScriptscriptPubKey
Script
Properties
Amount
Gets the amount of the output.
public LightningMoney Amount { get; set; }
Property Value
BitcoinScriptPubKey
Gets the scriptPubKey of the output.
public BitcoinScript BitcoinScriptPubKey { get; set; }
Property Value
Index
Gets or sets the index of the output in the transaction.
public uint Index { get; set; }
Property Value
RedeemBitcoinScript
Gets the redeemScript of the output, if applicable.
public BitcoinScript RedeemBitcoinScript { get; set; }
Property Value
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
Methods
CompareTo(IOutput?)
public int CompareTo(IOutput? other)
Parameters
other
IOutput
Returns
ToCoin()
public ScriptCoin ToCoin()
Returns
- ScriptCoin
ToTxOut()
Converts the output to a NBitcoin.TxOut.
public TxOut ToTxOut()
Returns
- TxOut
TxOut object.