Table of Contents

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

channelIdFactory IChannelIdFactory
channelOpenValidator IChannelOpenValidator
feeService IFeeService
lightningSigner ILightningSigner
nodeOptions NodeOptions
sha256 ISha256

Methods

CreateChannelV1AsInitiatorAsync(OpenChannelClientRequest, FeatureOptions, CompactPubKey)

public Task<ChannelModel> CreateChannelV1AsInitiatorAsync(OpenChannelClientRequest request, FeatureOptions negotiatedFeatures, CompactPubKey remoteNodeId)

Parameters

request OpenChannelClientRequest
negotiatedFeatures FeatureOptions
remoteNodeId CompactPubKey

Returns

Task<ChannelModel>

CreateChannelV1AsNonInitiatorAsync(OpenChannel1Message, FeatureOptions, CompactPubKey)

public Task<ChannelModel> CreateChannelV1AsNonInitiatorAsync(OpenChannel1Message message, FeatureOptions negotiatedFeatures, CompactPubKey remoteNodeId)

Parameters

message OpenChannel1Message
negotiatedFeatures FeatureOptions
remoteNodeId CompactPubKey

Returns

Task<ChannelModel>