MetaMask
Experimental
wallet_revokePermissions
Summary: Revokes the current dapp permissions.
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.
Parameters
revokePermissionObject object
PermissionObject
Returns
RevokePermissionsResult null
Customize request
Parameter
Value
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "wallet_revokePermissions",
"params": [
{
eth_accounts: {}
}
],
});