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

mega.revokePermissions()

Immediately revoke all active delegated permissions from the app side. After revocation, callContract() with silent: true will fall back to the wallet approval UI.

Signature

mega.revokePermissions(): Promise<void>

Parameters

None.

Example

await mega.revokePermissions();

// Also point users to wallet/account settings for per-app revocation controls.

Response

Promise<void> — resolves once the revocation is recorded.

Notes

App-triggered revokePermissions() is one revocation path. Users can also revoke permissions per app from wallet/account settings, independent of any app trigger. Don't describe revocation as global-only or all-or-nothing in your UI copy.

For reading current permissions before revoking, use getPermissions().

Last updated