> ## Documentation Index
> Fetch the complete documentation index at: https://docs.saucerswap.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Developer overview

> Start here to build on SaucerSwap: choose between the REST data API, the V3 Orderbook API, and on-chain contracts, with auth models and testnet setup.

SaucerSwap exposes three integration surfaces. Most integrations use more than one: read market data from an API, then quote and execute on-chain or through the order book.

![SaucerSwap protocol architecture: the V1 AMM, V2 concentrated liquidity, and V3 order book side by side beneath the app's routing layer](https://mintcdn.com/saucerswaplabs/WgbLH3-BEEASvtv_/images/diagrams/protocol-architecture.svg?fit=max\&auto=format\&n=WgbLH3-BEEASvtv_\&q=85\&s=72a5844409a2ef8d8c7bb95c6b5de201)

The three protocol versions behind the integration surfaces.

## The three surfaces

| Surface | What it gives you | Authentication | Reference |
| - | - | - | - |
| REST data API | Tokens, prices, candles, V1/V2 pools, farms, positions, and protocol stats | None | [API reference](https://docs.saucerswap.finance/api-reference/overview.md) |
| Orderbook API (V3) | Order books, depth, trade tape, market quotes, order placement and cancellation, WebSocket streams | Public reads; wallet challenge + JWT for account data and order flow | [Orderbook API](https://docs.saucerswap.finance/api-reference/orderbook/overview.md) |
| On-chain contracts | Swaps, quotes, liquidity, staking, and farming against the deployed V1 and V2 contracts | None — you pay Hedera gas | [Contract deployments](https://docs.saucerswap.finance/developers/contracts.md) |

## Which surface for which job

| You want to | Use |
| - | - |
| Show prices, charts, TVL, or portfolio data | [REST data API](https://docs.saucerswap.finance/api-reference/overview.md) |
| Get a swap quote without executing | [QuoterV2 or router quote functions](https://docs.saucerswap.finance/developers/v2/swap/swap-quote.md) — free via JSON-RPC or the mirror node |
| Execute swaps from your own app or bot | [V2 swap operations](https://docs.saucerswap.finance/developers/v2/swap/swap-quote.md) (V1 available as [legacy](https://docs.saucerswap.finance/developers/v1/swap/swap-quote.md)) |
| Run a market maker or trading bot on the V3 order book | [Orderbook API](https://docs.saucerswap.finance/api-reference/orderbook/overview.md) and the [TypeScript bot client](https://docs.saucerswap.finance/developers/orderbook/typescript-client.md) |
| Manage liquidity positions programmatically | [V2 liquidity operations](https://docs.saucerswap.finance/developers/v2/liquidity/new-liquidity-position.md) |
| Stake SAUCE or farm LP tokens from code | [Staking operations](https://docs.saucerswap.finance/developers/staking/single-sided-staking.md) |
| Monitor swaps and pools in near real time | [Track swap events](https://docs.saucerswap.finance/developers/v2/swap/track-swap-events.md), or the [order book WebSockets](https://docs.saucerswap.finance/api-reference/orderbook/websockets.md) for V3 |

> [!NOTE]
>
> V2 is recommended for new AMM integrations; V1 remains live but is legacy. The V3 order book is a separate matching system with its own [API](https://docs.saucerswap.finance/api-reference/orderbook/overview.md) and [concepts page](https://docs.saucerswap.finance/protocol/saucerswap-v3.md).

## Test before mainnet

Every surface has a testnet counterpart:

| Surface | Testnet endpoint |
| - | - |
| REST data API | `https://test-api.saucerswap.finance` |
| Orderbook API | `https://testnet-orderbook-api.saucerswap.finance` |
| Contracts | [Testnet deployments](https://docs.saucerswap.finance/developers/contracts.md#hedera-testnet) via `https://testnet.mirrornode.hedera.com` and the testnet JSON-RPC relay |

Create a Hedera testnet account and fund it with test HBAR through the [Hedera developer portal](https://portal.hedera.com/). Use a dedicated integration account for bots — never a primary wallet key.

## Next steps

> [card] [Quickstart](https://docs.saucerswap.finance/developers/quickstart.md)
>
> Make your first API calls in under five minutes.

> [card] [Contract deployments](https://docs.saucerswap.finance/developers/contracts.md)
>
> Canonical contract and token IDs with HashScan links.

> [card] [API reference](https://docs.saucerswap.finance/api-reference/overview.md)
>
> Both APIs, authentication models, and every endpoint.

> [card] [Build with AI](https://docs.saucerswap.finance/developers/ai.md)
>
> llms.txt, the docs MCP server, and an agent rules file.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.