uniswap_v2_swap_tx
Build an unsigned Uniswap v2 Router02 swap tx (ETH/token in or out) with slippage min-out and an approval check, gas-estimated. Paid: $0.02 USDC via x402.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "uniswap_v2_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | from | |
| chain | No | chain | |
| amount | No | amount | |
| token_in | No | token_in | |
| token_out | No | token_out | |
| slippage_bps | No | slippage_bps |