Buy the top 5 or top 10 by volume
trnch_buy_topBuild one buy split equally across the top 5 or top 10 tokens by 24-hour pool volume on Robinhood Chain. Give top (5 or 10), pay (USDG or ETH) and amount (decimal, in units of pay). Each leg is quoted across nine routers and built with the Trnch fee already deducted (feeBps on every leg); the last leg takes the remainder of the split. Tokens that trnch keeps out or cannot sell, tokens whose facts cannot be read, stablecoins and wrapped ETH are skipped and replaced by the next token by volume; a leg without a route is dropped and the split is recomputed. Returns { pay, total, requested, count, legs [{ rank, token, amountIn, router, feeBps, expectedOut, facts, approval, tx }], skipped [{ address, symbol, ... }], meaning }: a volume ranking and facts, not a verdict or a recommendation. Send each leg's approval, when not null, before its tx, from the key's wallet; each leg is a separate transaction. Nothing is sent by Trnch. Errors: 422 no token passes, 404 no route left, 400 invalid amount, 503 ranking out of date, 429 rate or build limit (retry-after). 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. Requires an API key (created by wallet signature), sent as Authorization: Bearer .
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": {
"top": "<top>",
"pay": "<pay>",
"amount": "<amount>"
},
"name": "trnch_buy_top"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pay | Yes | Token paid: USDG or ETH. | |
| top | Yes | How many tokens: 5 or 10. | |
| amount | Yes | Total to spend, in units of pay, e.g. "100" or "2.5". Split equally across the legs. | |
| slippageBps | No | Max slippage in basis points (100 = 1%). Default 100, raised to a known token tax + 1% up to 15%; above that, required. | |
| 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. |