orbs_prepare_limit_intent
Prepare a limit order for external wallet signing, returning EIP-712 typed data, approval calldata, and metadata.
Instructions
Prepare a limit order for external wallet signing. Returns EIP-712 typed data, approval calldata, and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expiry | No | Order expiry in seconds from now (default 86400 = 24h) | |
| account | Yes | Swapper wallet address | |
| chainId | No | Chain ID (defaults to runtime config) | |
| toToken | Yes | Destination token address | |
| fromToken | Yes | Source token address | |
| fromAmount | Yes | Amount in smallest token units | |
| slippageBps | No | Slippage tolerance in BPS (default 500 = 5%) | |
| toMinAmount | Yes | Minimum output amount in smallest token units | |
| exactApproval | No | If true, approve only the exact amount needed instead of unlimited |