Skip to main content

waitForFullSync

Midnight.js API Reference v2.0.2


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