Interface ICommitmentTransactionModelFactory
- Namespace
- NLightning.Domain.Bitcoin.Transactions.Interfaces
- Assembly
- NLightning.Domain.dll
Interface for the factory that creates commitment transactions.
public interface ICommitmentTransactionModelFactory
Methods
CreateCommitmentTransactionModel(ChannelModel, CommitmentSide)
Creates a domain model of a commitment transaction for the specified channel.
CommitmentTransactionModel CreateCommitmentTransactionModel(ChannelModel channel, CommitmentSide side)
Parameters
channel
ChannelModelThe channel for which to create the commitment transaction.
side
CommitmentSideWhether to create a local or remote commitment transaction.
Returns
- CommitmentTransactionModel
A domain model of the commitment transaction.