useGrantPermissions
React hook for granting permissions on the smart account to a given keypair This enables dapps to request specific permissions from smart accounts, such as spending limits or execution permissions. Returns an error if called with an EOA wallet connection.
Import
Usage
Parameters
params
UseGrantPermissionsParams
Configuration object containing the smart account client
Returns
UseGrantPermissionsResult
Object containing mutation functions, loading state, result, and error