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
GetFeeRatePerKwAsync(CancellationToken)
Gets the current fee rate in satoshis per kiloweight (sat/kW)
Task<LightningMoney> GetFeeRatePerKwAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
RefreshFeeRateAsync(CancellationToken)
Forces a refresh of the fee rate from the API
Task RefreshFeeRateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
StartBackgroundRefreshAsync(CancellationToken)
Starts a background task to periodically refresh the fee rate
Task StartBackgroundRefreshAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken