Quote a swap
trnch_quoteFree, no key, no wallet: quote any pair on Elysium across five routers (Uniswap, KyberSwap, LI.FI, Nordstern and 0x) 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. A transaction (trnch_buy, trnch_sell) needs an API key. A partner's integrator fee (integratorFeeBps, or the partner's default fee when the request carries X-Trnch-Partner-Key) is added to the Trnch fee and taken by the same router fee on every router; a router whose maximum fee is below the total is left out of the quote. The integrator fee is paid to the partner through the Trnch partner program after the swap is confirmed on chain. fees in the response: { side, token, trnch { bps, amount }, integrator { bps, amount, partner } or null, minAmountOut }, amounts in the smallest unit; minAmountOut is net of both fees and of slippage.
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: an Elysium token address, or the zero address for HYPE. | |
| amountIn | Yes | Amount of tokenIn in its smallest unit (wei-style integer string). | |
| slippage | No | Legacy: max slippage as a fraction (0.01 = 1%). Send slippageBps or slippage, not both. | |
| tokenOut | Yes | Token bought: an 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. | |
| slippageBps | No | Max slippage in basis points (100 = 1%). Default 100. | |
| integratorFeeBps | No | Integrator fee in basis points, 0 to 100, for a partner identified by X-Trnch-Partner-Key or by the partner ref of the API key. Overrides the partner's default fee; the default fee applies only with X-Trnch-Partner-Key, never through the partner ref of the API key alone. Without a partner, a value above 0 is refused. |