exec_sandwich
Sandwich / MEV risk score for a planned swap, from price impact and trade size, with concrete mitigations (private RPC, tighter slippage, order splitting). Send { chain, tokenIn, tokenOut, amountIn }. Trade without getting sandwiched. [x402 paid tool — price $0.05; POST /api/exec/sandwich]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain, default base | |
| tokenIn | Yes | 0x token to sell | |
| amountIn | Yes | Amount in smallest units | |
| tokenOut | Yes | 0x token to buy |