# DEX Aggregator

> Find the best swap route across NEAR DEXs and get it back as ready-to-sign transactions, with simple frontend fee management.

This page is part of the DEX Aggregator docs. The aggregator is at `https://router.intear.tech`, with live quotes at `wss://router.intear.tech/route/subscribe`, on NEAR mainnet only. https://docs.intear.tech/dex-aggregator/llms-full.txt has all of its pages in one file, and https://docs.intear.tech/llms.txt lists every page of the Intear docs.

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.tech
```

It 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.

## What you can do

- **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.

## Supported DEXs

| DEX | What it is | `dexes` ID |
| --- | --- | --- |
| [Rhea](https://app.rhea.finance/) | AMM (classic, stable, rated and degen pools) | `Rhea` |
| [Rhea DCL](https://app.rhea.finance/) | Concentrated liquidity AMM on Rhea | `RheaDcl` |
| [Intear Plach](https://dex.intea.rs/) | AMM (classic, virtual liquidity) on Intear DEX | `Plach` |
| Wrap | 1:1 conversion between tokens and locations | `Wrap` |

See [DEXs](https://docs.intear.tech/dex-aggregator/reference/dexs.md) for what each one supports.

## Next steps

- [Quickstart](https://docs.intear.tech/dex-aggregator/quickstart.md): Get a quote and execute your first swap.
- [Playground](https://docs.intear.tech/dex-aggregator/playground.md): Build a request and see the live response in your browser.
- [GET /route reference](https://docs.intear.tech/dex-aggregator/reference/route.md): Every parameter and response field.
