Class FundingTransactionModel
- Namespace
- NLightning.Domain.Bitcoin.Transactions.Models
- Assembly
- NLightning.Domain.dll
Represents a funding transaction in the domain model. This class encapsulates the logical structure of a Lightning Network funding transaction as defined by BOLT specifications, without dependencies on specific Bitcoin libraries.
public class FundingTransactionModel
- Inheritance
-
FundingTransactionModel
- Inherited Members
Constructors
FundingTransactionModel(IEnumerable<UtxoModel>, FundingOutputInfo, LightningMoney)
public FundingTransactionModel(IEnumerable<UtxoModel> utxos, FundingOutputInfo fundingOutput, LightningMoney fee)
Parameters
utxosIEnumerable<UtxoModel>fundingOutputFundingOutputInfofeeLightningMoney
Properties
ChangeAddress
public WalletAddressModel? ChangeAddress { get; set; }
Property Value
ChangeAmount
public LightningMoney? ChangeAmount { get; set; }
Property Value
Fee
Gets the total fee for this transaction.
public LightningMoney Fee { get; }
Property Value
FundingOutput
Gets the funding output that this transaction pays to.
public FundingOutputInfo FundingOutput { get; }
Property Value
TransactionId
Gets or sets the transaction ID after the transaction is constructed.
public TxId? TransactionId { get; set; }
Property Value
- TxId?
Utxos
Gets the outputs to be spent by this transaction.
public IEnumerable<UtxoModel> Utxos { get; }