Table of Contents

Interface IFeeService

Namespace
NLightning.Domain.Bitcoin.Services
Assembly
NLightning.Domain.dll
public interface IFeeService

Methods

GetCachedFeeRatePerKw()

Gets the current cached fee rate without checking API

LightningMoney GetCachedFeeRatePerKw()

Returns

LightningMoney

GetFeeRatePerKwAsync(CancellationToken)

Gets the current fee rate in satoshis per kiloweight (sat/kW)

Task<LightningMoney> GetFeeRatePerKwAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<LightningMoney>

RefreshFeeRateAsync(CancellationToken)

Forces a refresh of the fee rate from the API

Task RefreshFeeRateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

StartAsync(CancellationToken)

Starts a background task to periodically refresh the fee rate

Task StartAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

StopAsync()

Stops the background task and cancels any ongoing operations within the service.

Task StopAsync()

Returns

Task

A task representing the asynchronous stop operation.