Class BaseOutput
- Namespace
- NLightning.Bolts.BOLT3.Outputs
- Assembly
- NLightning.Bolts.dll
Represents a transaction output.
public abstract class BaseOutput
- Inheritance
-
BaseOutput
- Derived
- Inherited Members
Constructors
BaseOutput(Script, Script, LightningMoney)
protected BaseOutput(Script redeemScript, Script scriptPubKey, LightningMoney amount)
Parameters
redeemScript
ScriptscriptPubKey
Scriptamount
LightningMoney
BaseOutput(Script, LightningMoney)
protected BaseOutput(Script redeemScript, LightningMoney amount)
Parameters
redeemScript
Scriptamount
LightningMoney
Properties
Amount
Gets the amount of the output in satoshis.
public LightningMoney Amount { get; set; }
Property Value
Index
Gets or sets the index of the output in the transaction.
public int Index { get; set; }
Property Value
Remarks
Output is nonexistent if this is -1.
RedeemScript
public Script RedeemScript { get; }
Property Value
- Script
ScriptPubKey
Gets the scriptPubKey of the output.
public Script ScriptPubKey { get; }
Property Value
- Script
ScriptType
public abstract ScriptType ScriptType { get; }
Property Value
- ScriptType
TxId
Gets or sets the transaction ID of the output.
public uint256? TxId { get; set; }
Property Value
- uint256
Methods
CompareTo(BaseOutput?)
public int CompareTo(BaseOutput? other)
Parameters
other
BaseOutput
Returns
ToCoin()
public ScriptCoin ToCoin()
Returns
- ScriptCoin
ToTxOut()
Converts the output to a NBitcoin.TxOut.
public TxOut ToTxOut()
Returns
- TxOut
TxOut object.