arcade_swap
Build approve and swap contract-call descriptors for an agent to swap tokens on ARC-TESTNET. Specify token pair, amount, recipient, and optional slippage to generate sequential approve and swap calls.
Instructions
Build approve + swap contract-call descriptors (contractAddress, abiFunctionSignature, abiParameters) for the agent to sign with its own wallet on ARC-TESTNET (chainId 5042002). recipient is the agent wallet; output is sent there. amountIn is RAW token units (integer string; USDC has 6 decimals). Run the returned calls[] in order (approve, then swap). tokenIn/tokenOut accept a known symbol (USDC, USDT, EURC, WUSDC, cirBTC, WETH) or a 0x address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | ||
| amountIn | Yes | ||
| tokenOut | Yes | ||
| recipient | Yes | ||
| slippageBps | No |