Class ChannelFactory
- Namespace
- NLightning.Domain.Channels.Factories
- Assembly
- NLightning.Domain.dll
public class ChannelFactory : IChannelFactory
- Inheritance
-
ChannelFactory
- Implements
- Inherited Members
Constructors
ChannelFactory(IChannelIdFactory, IChannelOpenValidator, IFeeService, ILightningSigner, NodeOptions, ISha256)
public ChannelFactory(IChannelIdFactory channelIdFactory, IChannelOpenValidator channelOpenValidator, IFeeService feeService, ILightningSigner lightningSigner, NodeOptions nodeOptions, ISha256 sha256)
Parameters
channelIdFactoryIChannelIdFactorychannelOpenValidatorIChannelOpenValidatorfeeServiceIFeeServicelightningSignerILightningSignernodeOptionsNodeOptionssha256ISha256
Methods
CreateChannelV1AsInitiatorAsync(OpenChannelClientRequest, FeatureOptions, CompactPubKey)
public Task<ChannelModel> CreateChannelV1AsInitiatorAsync(OpenChannelClientRequest request, FeatureOptions negotiatedFeatures, CompactPubKey remoteNodeId)
Parameters
requestOpenChannelClientRequestnegotiatedFeaturesFeatureOptionsremoteNodeIdCompactPubKey
Returns
CreateChannelV1AsNonInitiatorAsync(OpenChannel1Message, FeatureOptions, CompactPubKey)
public Task<ChannelModel> CreateChannelV1AsNonInitiatorAsync(OpenChannel1Message message, FeatureOptions negotiatedFeatures, CompactPubKey remoteNodeId)
Parameters
messageOpenChannel1MessagenegotiatedFeaturesFeatureOptionsremoteNodeIdCompactPubKey