Skip to main content

getInitialState

For the complete documentation index, see llms.txt

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