Skip to main content

getInitialState

Midnight.js API Reference v2.0.2


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