We are using an embedded wallet and would like to ask if there is a way to allow the end user to sign the transaction, but instead of executing the transfer immediately, have our backend approve the transaction first before proceeding with the transfer.
I tried using the TAP rule, but it causes the API signer to sign the transaction before the end user does. However, I want the end user to sign the transaction first. Then, based on my business logic, I want to decide whether to allow the transaction to be executed.
Desired Flow:
Step 1: The end user signs the transaction.
Step 2: The Term Structure backend approves the transaction.
Step 3: The transaction execution begins.
Would there be a way to achieve this flow?