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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fromToken": "<fromToken>",
"fromAmount": "<fromAmount>",
"account": "<account>"
},
"name": "orbs_get_required_approvals"
}
}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 |