Quote a swap
trnch_quoteQuote any pair on Elysium across three routers (Uniswap, KyberSwap and LI.FI) without building a transaction. Returns the best amount out, already net of the Trnch fee, the router and the fee rate in basis points (feeBps). Native HYPE is the zero address. No API key needed for a quote; a transaction (trnch_buy, trnch_sell) needs one.
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": "trnch_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Return the first clean quote after about 250 ms instead of waiting for the best price. Default false. | |
| tokenIn | Yes | Token sold: a Elysium token address, or the zero address for HYPE. | |
| amountIn | Yes | Amount of tokenIn in its smallest unit (wei-style integer string). | |
| slippage | No | Max slippage as a fraction (0.01 = 1%). Default 0.01. | |
| tokenOut | Yes | Token bought: a Elysium token address, or the zero address for HYPE. | |
| decimalsIn | No | Decimals of tokenIn. Default 18: set it for USDC (6) and other non-18 tokens. | |
| decimalsOut | No | Decimals of tokenOut. Default 18: set it for USDC (6) and other non-18 tokens. |