Prepare swap
elysium_prepare_swapBuilds (never signs) a swap: Elysium uses Uniswap v4 via Universal Router; HyperEVM uses the best HyperSwap V3 / Uniswap v3 quote with a Hyperliquid HYPE price check for HYPE/stablecoin pairs. Re-quotes, applies slippage, risk-checks and simulates. HyperEVM deviations above 3% warn and above 10% block preparation. Missing ERC-20 allowance returns approvals_required and exact-amount approval signing links, not a swap link. Elysium approvals use Permit2; HyperEVM approvals use the selected v3 router. Sign approvals, wait, then request the swap again. Chains: elysium (default), hyperevm, robinhood.
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": {
"from": "<from>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "elysium_prepare_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | ||
| chain | No | elysium (default), hyperevm or robinhood | elysium |
| policy | No | ||
| tokenIn | Yes | HYPE (native), WHYPE, USDC or a token address; on Robinhood Chain ETH, WETH, USDG or an uppercase stock ticker | |
| amountIn | Yes | ||
| tokenOut | Yes | HYPE (native), WHYPE, USDC or a token address; on Robinhood Chain ETH, WETH, USDG or an uppercase stock ticker | |
| allowHooks | No | ||
| slippageBps | No | ||
| deadlineMinutes | No |