Client whose scan and decrypt each pass calls.
Chain ID of the network that the scheduler syncs.
OptionalwalletsInitial wallet targets.
Builds the data source for the scan of each pass.
OptionalgetChain head provider. When set, each pass scans and decrypts up to the head minus confirmations.
OptionalintervalDelay in milliseconds from the end of a pass to the next periodic pass. Defaults to 60000.
OptionalminSmallest gap in milliseconds between the end of a pass and the start of the next. Defaults to 0.
OptionalconfirmationsNumber of blocks subtracted from the head that getHead returns. Must be a non-negative integer. Defaults to 0.
OptionalheadPoll interval in milliseconds while a pass waits for the confirmed head to reach afterBlock. Defaults to 1000.
OptionalbackoffRetry delay after a failed pass.
OptionalonCalled for each failed pass. An error that it throws is discarded.
Constructor options for
BalanceSyncScheduler.