Skip to content

wallet_revokePermissions

Revokes a permission.

Request

type Request = {
  method: 'wallet_revokePermissions',
  params: [{
    /** Address of the account to revoke a permission on. */
    address?: `0x${string}`
    /** ID of the permission to revoke. */
    id: `0x${string}`
  }]
}

Example

import RapidfireID from '@rapidfire/id'
 
const rapidfire = new RapidfireID()
const provider = rapidfire.getEthereumProvider()
 
await provider.request({
  method: 'experimental_revokePermissions',
  params: [{ id: '0x...' }],
})