> For the complete documentation index, see [llms.txt](https://docs.mento.org/mento-v3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mento.org/mento-v3/build/mento-sdk/guides.md).

# Guides

These guides show how to use the **Mento SDK v3** for Mento V3: FPMM pools, oracles, route caching, liquidity, and CDP borrowing. The SDK is **service-based**: after `Mento.create(ChainId.CELO)` you use `mento.tokens`, `mento.pools`, `mento.routes`, `mento.quotes`, `mento.swap`, `mento.trading`, `mento.liquidity`, and `mento.borrow`.

***

## Discovery & trading status

| Guide                                                                                              | What you’ll do                                                                                                                                        |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Discovering tokens, pools and routes](/mento-v3/build/mento-sdk/guides/getting-exchange-pairs.md) | Discover tokens, **pools** (with pricing, fees, rebalancing, limits), **routes** (cached or fresh), and **trading status** (circuit breaker, limits). |
| [Getting a quote](/mento-v3/build/mento-sdk/guides/getting-a-quote.md)                             | Get expected swap output with `mento.quotes.getAmountOut` (or amount in for exact out).                                                               |
| [Initiating a swap](/mento-v3/build/mento-sdk/guides/initiating-a-swap.md)                         | Build swap and approval transactions with `mento.swap.buildSwapTransaction` and send with a viem wallet.                                              |

***

## Liquidity (FPMM pools)

| Guide                                                                 | What you’ll do                                                                                                                    |
| --------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [Liquidity management](/mento-v3/build/mento-sdk/guides/liquidity.md) | **Add/remove liquidity** to FPMM pools; **zap in** (single token → LP) and **zap out** (LP → single token); get LP token balance. |

***

## Borrow (CDP)

| Guide                                                      | What you’ll do                                                                                                                                      |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Borrow (CDP)](/mento-v3/build/mento-sdk/guides/borrow.md) | **Open, adjust, close** troves; read trove data and system params; **predict upfront fee** before opening; build transactions for your viem wallet. |

***

All guides assume you have created a client as in [Installation](/mento-v3/build/mento-sdk/installation.md). For runnable code, see [mento-sdk-examples](https://github.com/mento-protocol/mento-sdk-examples).


---

# 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.mento.org/mento-v3/build/mento-sdk/guides.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.
