Quote a swap
quote_swapGet a quote for a single-hop Uniswap v4 swap on Robinhood Chain, verifying pool liquidity and minimum output amount before execution.
Instructions
Quote an exact-input single-hop swap through the Uniswap v4 Quoter on Robinhood Chain. Proves the pool has liquidity and sizes minAmountOut before executing. Reverts if there is no/thin pool for the given fee + tickSpacing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | pool fee (default 3000 = 0.3%) | |
| tokenIn | Yes | input token symbol or 0x address | |
| amountIn | Yes | human-readable input amount, e.g. "1" or "0.5" | |
| tokenOut | Yes | output token symbol or 0x address | |
| tickSpacing | No | pool tick spacing (default 60) |