orbs_get_required_approvals
Check if wrapping native assets or approving Permit2 is required before signing an Orbs swap intent. Get the necessary approvals for swap or order mode.
Instructions
Check whether wrapping native assets or approving Permit2 is required before signing an Orbs swap intent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Approval mode: 'swap' checks Permit2, 'order' checks RePermit | swap |
| account | Yes | User wallet address | |
| chainId | No | Chain ID (defaults to runtime config) | |
| fromToken | Yes | Source token address | |
| fromAmount | Yes | Amount in smallest token units | |
| exactApproval | No | If true, approve exact amount instead of unlimited |