Quote a swap
quoteFinds a swap route on Robinhood Chain across Uniswap v3, v4, and hooked pools, returning amounts, price impact, slippage checks, warnings, and a policy-verdict preview without calldata.
Instructions
Best route for a swap on Robinhood Chain across Uniswap v3 (4 fee tiers), v4 and hooked v4 pools, including splits and two-hop routes via USDG or ETH. Returns amounts, minimum received, price impact, pinned-code and hook checks, warnings, and a preview of the spending-policy verdict. Never returns calldata.
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>",
"amount": "<amount>"
},
"name": "quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of tokenIn as a decimal string in whole-token units, e.g. "0.25". | |
| tokenIn | Yes | Token address on Robinhood Chain, or "ETH" for native ETH. | |
| tokenOut | Yes | Token address on Robinhood Chain, or "ETH" for native ETH. | |
| slippageBps | No | Slippage in basis points. Defaults to the policy maximum; above it the trade is refused. |