swap_route
Find an optimal swap route across Base aggregators and receive ready-to-sign calldata. You sign and send the returned transaction data to execute the trade.
Instructions
Best swap route across Base aggregators as ready-to-sign calldata. Costs $0.01 USDC via x402 plus a 10 bps fee inside the route (less for GLINT tiers). Returns to/data/value; you sign and send it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | Token address or ETH | |
| from | Yes | Address that will sign and send the transaction | |
| sell | Yes | Token address or ETH | |
| amount | Yes | Sell amount in the sell token's smallest unit, as a decimal string | |
| recipient | No | Receiver of the output token; defaults to from | |
| slippageBps | No | 1..2000, default 50 |