Skip to main content

wallet_revokePermissions

Revokes previously granted permissions for the current dapp identified by its origin. This method accepts a single permission per call. Specified by MIP-2 and only available for the MetaMask browser extension.

Parameters

Permission(object)required

Object containing the permission to revoke.

Returns

This method returns null if the permission is revoked.

Example request
await provider.request({
method: 'wallet_revokePermissions',
params: [
{
eth_accounts: {},
},
],
})
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": null
}