Table of Contents

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

utxos IEnumerable<UtxoModel>
fundingOutput FundingOutputInfo
fee LightningMoney

Properties

ChangeAddress

public WalletAddressModel? ChangeAddress { get; set; }

Property Value

WalletAddressModel

ChangeAmount

public LightningMoney? ChangeAmount { get; set; }

Property Value

LightningMoney

Fee

Gets the total fee for this transaction.

public LightningMoney Fee { get; }

Property Value

LightningMoney

FundingOutput

Gets the funding output that this transaction pays to.

public FundingOutputInfo FundingOutput { get; }

Property Value

FundingOutputInfo

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; }

Property Value

IEnumerable<UtxoModel>