Get a quote
One GET /route request returns quotes from every DEX, best first, with your custom frontend fees.
This page is also Markdown, for agents: /dex-aggregator.md, and /llms.txt lists every page.
The Intear DEX Aggregator finds the best route for a token swap on NEAR across several DEXs, and returns it as a list of transactions you sign and send. It runs at:
https://router.intear.techIt handles the boring parts for you: wrapping and unwrapping NEAR, storage deposits, token registrations, moving tokens in and out of DEX inner balances, gas and slippage limits, parsing outcomes, reporting errors, charging frontend fees. You only need to sign what it gives you.
Get a quote
One GET /route request returns quotes from every DEX, best first, with your custom frontend fees.
Execute a swap
Each quote has execution_instructions: transactions to sign in order. No contract knowledge needed.
Stream live quotes
Open a WebSocket to /route/subscribe and get new quotes whenever pool changes move them.
Earn referral fees
Charge your own fee on every swap with fees, and pass referrer_id to track volume.
| DEX | What it is | dexes ID |
|---|---|---|
| Rhea | AMM (classic, stable, rated and degen pools) | Rhea |
| Rhea DCL | Concentrated liquidity AMM on Rhea | RheaDcl |
| Intear Plach | AMM (classic, virtual liquidity) on Intear DEX | Plach |
| Wrap | 1:1 conversion between tokens and locations | Wrap |
See DEXs for what each one supports.