> For the complete documentation index, see [llms.txt](https://docs.liqd.ag/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liqd.ag/liquidswap-integration/overview.md).

# Overview

LiquidSwap is a multichain aggregator. It finds optimal swap routes across liquidity on supported chains, with built-in multi-hop routing, revenue sharing, and native token unwrapping.

## Supported chains

| Chain           | `chainId` |
| --------------- | --------- |
| HyperEVM        | `999`     |
| Robinhood Chain | `4663`    |

Pass `chainId` on [route](/liquidswap-integration/route-finding.md), [tokens](/liquidswap-integration/token-list.md), [token balances](/liquidswap-integration/token-balances.md), [liquidity sources](/liquidswap-integration/dexes.md), and [pools](/liquidswap-integration/find-pools.md) requests.

## Quick start

1. **Get a route** — call `GET https://api.liqd.ag/v2/route` with `tokenIn`, `tokenOut`, `amountIn`, and `chainId`.
2. **Execute** — send the returned `calldata` to the contract address in `execution.to`.

```javascript
const route = await fetch(
  'https://api.liqd.ag/v2/route?tokenIn=0x555...&tokenOut=0xB8C...&amountIn=100&chainId=999'
).then(r => r.json());

const tx = await signer.sendTransaction({
  to: route.execution.to,
  data: route.execution.calldata,
});
```

That's it. No API keys, no registration, no rate limits.

## Key features

* **No authentication** — start calling endpoints immediately
* **No rate limits** — scale without worrying about quotas or throttling
* **Multichain** — same API across HyperEVM and Robinhood Chain via `chainId`
* **Multi-hop routing** — set `multiHop=true` to route through intermediate tokens
* **Exact input or output** — provide `amountIn` for exact input swaps, or `amountOut` for exact output
* **Native unwrapping** — set `unwrapNative=true` to receive native HYPE (HyperEVM) or ETH (Robinhood Chain) instead of the wrapped token

## Revenue sharing

LiquidSwap charges no forced fees for API usage. You choose your own fee structure:

* **Custom fees** — set `feeBps` (up to 100 = 1%) and `feeRecipient` on route requests. You keep 97.5% of collected fees; 2.5% goes to protocol.
* **Positive slippage** — when swaps execute better than quoted, 50% of positive slippage is captured. If `feeRecipient` is set, half goes to you and half to protocol. Set `feeBps=0` with a `feeRecipient` to earn positive slippage without charging users.
* **Zero-fee option** — omit `feeBps` and `feeRecipient` to operate completely fee-free.

## API endpoints

| Endpoint                                                                     | Description                                                 |
| ---------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [`GET /v2/route?chainId=`](/liquidswap-integration/route-finding.md)         | Find optimal swap routes with ready-to-use calldata         |
| [`GET /dexes?chainId=`](/liquidswap-integration/dexes.md)                    | List liquidity sources and `routerIndex` values for a chain |
| [`GET /pools?chainId=`](/liquidswap-integration/find-pools.md)               | Discover pools for a token pair                             |
| [`GET /tokens?chainId=`](/liquidswap-integration/token-list.md)              | List tracked tokens with metadata                           |
| [`GET /tokens/balances?chainId=`](/liquidswap-integration/token-balances.md) | Get token balances for a wallet                             |

Base URL: `https://api.liqd.ag`

## Contracts

| Chain                    | RouterV2                                     |
| ------------------------ | -------------------------------------------- |
| HyperEVM (`999`)         | `0x744489ee3d540777a66f2cf297479745e0852f7a` |
| Robinhood Chain (`4663`) | `0xfc020bBCe0365f56bbBb78Ce504cE2a2b24E0ae6` |

Always prefer the `execution.to` address from the route response. See [Execution](/liquidswap-integration/execution.md) for full details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.liqd.ag/liquidswap-integration/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
