orbs_prepare_twap_intent
Prepare TWAP intent for external wallet signing, returning EIP-712 typed data and approval calldata to split a swap into timed chunks.
Instructions
Prepare a TWAP order for external wallet signing. Returns EIP-712 typed data, approval calldata, and metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunks | Yes | Number of chunks to split the order into | |
| account | Yes | Swapper wallet address | |
| chainId | No | Chain ID (defaults to runtime config) | |
| toToken | Yes | Destination token address | |
| fillDelay | Yes | Delay between chunk fills in seconds | |
| fromToken | Yes | Source token address | |
| fromAmount | Yes | Amount in smallest token units | |
| slippageBps | No | Slippage tolerance in BPS (default 500 = 5%) | |
| exactApproval | No | If true, approve only the exact amount needed instead of unlimited |