Swap any two tokens
tradeBuilds a real Uniswap V3 swap between any two tokens on Robinhood Chain. Handles approvals and returns broadcast-ready steps; the fixed fee is 0.01 USDG.
Instructions
Constructs a real Uniswap V3 swap transaction between any two tokens on Robinhood Chain — pass "ETH", "USDG", or any ERC20 address, there is no allowlist. Costs $0.01 USDG. Anything needing an approval first comes back as steps (approve, then swap); broadcast them in order. Pass the result to the broadcast tool to actually sign and send it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | "ETH", "USDG", or any ERC20 token address | |
| amountIn | Yes | Amount of tokenIn as a decimal string, e.g. "0.1" | |
| tokenOut | Yes | "ETH", "USDG", or any ERC20 token address | |
| slippageBps | No | Slippage tolerance in basis points, default 100 (1%) |