Interface IBlockchainMonitor
- Namespace
- NLightning.Infrastructure.Bitcoin.Wallet.Interfaces
- Assembly
- NLightning.Infrastructure.Bitcoin.dll
public interface IBlockchainMonitor
Methods
StartAsync(uint, CancellationToken)
Starts a background task to periodically refresh the fee rate
Task StartAsync(uint heightOfBirth, CancellationToken cancellationToken = default)
Parameters
heightOfBirthuintWallet's height of birth to avoid processing old blocks
cancellationTokenCancellationToken
Returns
StopAsync()
Stops the background task and cancels any ongoing operations within the service.
Task StopAsync()
Returns
- Task
A task representing the asynchronous stop operation.
WatchTransactionAsync(ChannelId, TxId, uint)
Task WatchTransactionAsync(ChannelId channelId, TxId txId, uint requiredDepth)
Parameters
Returns
Events
OnNewBlockDetected
event EventHandler<NewBlockEventArgs> OnNewBlockDetected
Event Type
OnTransactionConfirmed
event EventHandler<TransactionConfirmedEventArgs> OnTransactionConfirmed