Table of Contents

Interface IFeeService

Namespace
NLightning.Common.Interfaces
Assembly
NLightning.Common.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

StartBackgroundRefreshAsync(CancellationToken)

Starts a background task to periodically refresh the fee rate

Task StartBackgroundRefreshAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task