Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-testing / waitForFullSync
Function: waitForFullSync()
waitForFullSync(
wallet
,throttleTime
?):Promise
<WalletState
>
Waits for the wallet to fully synchronize with the network.
Parameters
wallet
Wallet
The wallet to wait for
throttleTime?
number
= 3_000
Throttle time in milliseconds
Returns
Promise
<WalletState
>
The synchronized wallet state