# How to Swap

The **Swap** section allows you to exchange one asset for another using liquidity provided by **Soroswap AMM** or, when available, optimized routes through the **Soroswap Aggregator**.

\
**Select the assets**\
Choose the asset you want to swap *from* and the asset you want to receive. You can search or pick from the available list.

<figure><img src="/files/sDpYk8wP047qT29lelue" alt=""><figcaption></figcaption></figure>

**Enter the amount**\
Input how much you want to swap. The app will automatically estimate how much you’ll receive.

<figure><img src="/files/Kw6AXVXAVklW1fw80h8R" alt=""><figcaption></figcaption></figure>

**Best route via Aggregator (automatic)**\
If a better price is available by splitting the trade across multiple AMMs (e.g. Phoenix AMM or Soroswap AMM), the **Aggregator** will route the swap automatically—no manual setup needed.

<figure><img src="/files/sl0bJ7ByNXCnEOp7JwSL" alt=""><figcaption></figcaption></figure>

**Approve trustline (if needed)**\
If it’s your first time using the asset, you’ll need to sign a trustline to authorize it in your wallet.

**Confirm the swap**\
Review the swap details and sign the transaction in your wallet.

**Check the result**\
Once confirmed, your wallet balance will update. You can also view the transaction on [Stellar.Expert](https://stellar.expert/) or [StellarChain](https://stellarchain.io/).

#### ⚙️ Adjusting slippage tolerance

You can control how much price variation you’re willing to accept:

* Open the **Settings** panel
* Select a predefined slippage value (e.g. 0.5%) or enter a custom one
* Click **Save** to apply changes

> 📘 Need a full walkthrough with screenshots and tips? Follow the [Swap Tutorial](https://docs.soroswap.finance/05-tutorial/05-doing-swap)

***

🔄 **Next step:** Provide Liquidity\
🧠 **Learn more:** How the Aggregator Works


---

# Agent Instructions: 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:

```
GET https://docs.soroswap.finance/readme/getting-started/how-to-swap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
