spraay_swap_execute
Execute a token swap on Base via Uniswap V3. Obtain a quote first, then sign and broadcast the unsigned transaction. Costs $0.01 USDC.
Instructions
Execute a token swap via Uniswap V3 on Base. Returns unsigned transaction data for the caller to sign and broadcast. Get a quote first with spraay_swap_quote. Costs $0.01 USDC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | Input token symbol (e.g. 'USDC') or contract address | |
| amountIn | Yes | Amount to swap in human-readable units | |
| slippage | No | Slippage tolerance in percent (default: 0.5, max: 50) | |
| tokenOut | Yes | Output token symbol (e.g. 'WETH') or contract address | |
| recipient | Yes | Recipient address for swap output (e.g. '0xYourWallet') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the gateway call succeeded; false when it returned an error. | |
| data | No | The gateway response payload on success. The exact shape depends on the tool (see the tool description and the JSON in the text content block). | |
| error | No | Human-readable error message, present only when ok is false. |