Returns one or two calls your app’s spender can submit to execute a spend. If
the permission is not yet registered onchain, an
approveWithSignature call
is prepended before the spend call.Parameters
Signed permission returned from
requestSpendPermission or fetched via fetchPermissions.Returns
Error Handling
Always wrap the call in a try-catch block to handle these errors gracefully.Use
getPermissionStatus to check isActive and remainingSpend before preparing a spend.