Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-testing / waitForPending
Function: waitForPending()
waitForPending(
wallet
,throttleTime
?):Promise
<WalletState
>
Waits for the wallet to have pending coins.
Parameters
wallet
Wallet
The wallet to check for pending coins
throttleTime?
number
= 1_000
Throttle time in milliseconds
Returns
Promise
<WalletState
>
The wallet state with pending coins