Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-testing / getInitialState
Function: getInitialState()
getInitialState(
wallet
):Promise
<WalletState
>
Gets the initial state of a wallet.
Parameters
wallet
Wallet
The wallet to get the state from
Returns
Promise
<WalletState
>
The initial wallet state