mega.deposit()
Last updated
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).
mega.deposit(): Promise<void>
None.
const state = await mega.status();
if (state.status === 'connected') {
await mega.deposit();
}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.
Requires a connected wallet. If status is disconnected, call connect() first.
Last updated