For the complete documentation index, see llms.txt. This page is also available as Markdown.

mega.deposit()

Open the built-in wallet funding UI. The user adds funds inside the MOSS wallet surface — no custom funding flow to build or maintain.

For integration patterns, see Deposit Flows (Unifold).

Signature

mega.deposit(): Promise<void>

Parameters

None.

Example

const state = await mega.status();

if (state.status === 'connected') {
  await mega.deposit();
}

Response

Promise<void> — resolves once the wallet deposit UI is opened. No structured success or transaction payload comes back through this method; observe wallet state through events.onStatusChange and refresh balances() after the user completes funding.

Notes

Requires a connected wallet. If status is disconnected, call connect() first.

Last updated