wallet_revokePermissions
Remove previously granted permissions from an account.
Revokes a permission.
Request#
_10type Request = {_10 method: 'wallet_revokePermissions',_10 params: [{_10 /** Address of the account to revoke a permission on. */_10 address?: `0x${string}`_10 /** ID of the permission to revoke. */_10 id: `0x${string}`_10 }]_10}
Example#
To make these instructions concrete, we have created a sample cross-app wallet called Rapidfire ID. To interact with it, you can find its SDK in the NPM package directory: @rapidfire/id.
You can check out the GitHub repository for Rapidfire Wallet to learn how to create your own wallet.
_10import RapidfireID from '@rapidfire/id'_10_10const rapidfire = new RapidfireID()_10const provider = rapidfire.getEthereumProvider()_10_10await provider.request({_10 method: 'experimental_revokePermissions',_10 params: [{ id: '0x...' }],_10})