Skip to main content

wallet_revokePermissions

MetaMaskExperimental

Revokes previously granted permissions for the current dapp identified by its origin. This method is specified by MIP-2 and is only available for the browser extension.

Params

(1)

1. revokePermissionObject (required)

dictionary[string, object]

Result

(RevokePermissionsResult)
null

Example

Request

await window.ethereum.request({
"method": "wallet_revokePermissions",
"params": [
{
"eth_accounts": {}
}
]
});

Result

null

Params

revokePermissionObject

permission

Request

await window.ethereum.request({
"method": "wallet_revokePermissions",
"params": [
null
]
});