watcher

fun watcher(pollDelay: Duration = 5.seconds, channelSize: Int = Channel.UNLIMITED, exceptionHandler: WalletExceptionHandler = RetryExceptionHandler()): Watcher

Creates new transaction watcher

Return

new transaction watcher

Parameters

pollDelay

poll interval in which requests to the Anchor are being made.

channelSize

size of the Coroutine Channel. See channel documentation for more info about channel size configuration. Be default, unlimited channel is created.

exceptionHandler

handler for exceptions. By default, RetryExceptionHandler is being used.