mega.open()
Last updated
Bring the wallet UI overlay forward without executing a specific signing or transaction flow. Useful when your product offers an explicit "Open wallet" affordance for account management or session inspection.
mega.open(): Promise<void>
None.
const state = await mega.status();
if (state.status !== 'connected') {
await mega.open();
}Promise<void> — resolves once the wallet UI is shown.
If the user isn't connected, open() is a natural prompt path that doesn't force a specific action. For an explicit auth prompt with a result, use connect() instead.
Last updated