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 permission to revoke.

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.