Skip to main content
Defined in the Base Account SDK
Builds a single revoke call that your app’s spender account can submit to revoke a permission silently. This requires your app to control a spender account with rights to revoke.

Parameters

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

Returns

Call
Call data for the revoke transaction.

Error Handling

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