Skip to main content
Defined in the Base Account SDK
Prompts the user to approve revoking the specified spend permission. Requires user interaction via their Base Account wallet UI.

Parameters

SpendPermission
required
The spend permission to revoke. This should be a SpendPermission object returned from requestSpendPermission or fetched via fetchPermissions.

Returns

`0x${string}`
Transaction hash of the revoke operation.

Error Handling

Always wrap the call in a try-catch block to handle these errors gracefully.