> For the complete documentation index, see [llms.txt](https://docs.blackhole.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blackhole.xyz/protocol-design/how-to-swap.md).

# How to Swap

From the main Swap menu, there are three options you can choose:

* Swap
* TWAP
* Limit&#x20;

1. For regular swaps, click on the swap icon:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2F13vi9wBIqu3R4YLIgPZI%2Fimage.png?alt=media&amp;token=30f515bc-d485-4bb6-8110-5cb325b748c3" alt=""><figcaption></figcaption></figure>

2. Select the token you want to swap and the token you want to receive.:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2Fq0AFghVWpcZN1PzRa9Q1%2Fimage.png?alt=media&amp;token=8a5830ff-df0e-4110-96d7-cd29a8be7101" alt=""><figcaption></figcaption></figure>

3. Enter the swap amount manually or use the buttons to automatically select 25%, 50%, 75% or Max amount you have available in your wallet:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FhgFKtybm4TagJ6jTW6hL%2Fimage.png?alt=media&amp;token=292c1081-86b6-45c0-9c90-49a652a6638e" alt=""><figcaption></figcaption></figure>

4. On the right hand side you see the swap details, showing the exchange rate found, the slippage applied, minimum amount to be received and the price impact. You can adjust the slippage according to the expected price impact:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FLCB9Hqt1Yrk2LVs65IPr%2Fimage.png?alt=media&amp;token=e63e7a29-908e-43b8-92f3-84c887cec39b" alt=""><figcaption></figcaption></figure>

5. Before you can proceed you need to give approval the Blackhole protocol to access your token before the swap can be executed. Click on Allow and sign the transaction:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FyOuijTlQv01Yf2C2qlYE%2Fimage.png?alt=media&amp;token=35fbe9c6-9f48-4a93-ba95-8f8e4913e2ee" alt=""><figcaption></figcaption></figure>

6. After the approval transaction has been committed, the SWAP button appears so you can initiate the swap transaction:

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FzzYLHzJcE6Cmm2DIVtrE%2Fimage.png?alt=media&amp;token=4e052150-d1bf-4bba-92df-f6c844f5f45c" alt=""><figcaption></figcaption></figure>

7. After successful completion of the swap transaction a toast message will appear showing that the swap executed succesfully. You can click on the icon to show the transaction details on the block explorer.&#x20;

<figure><img src="https://231591381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4ai8QkCKA9lGQuDBy6J0%2Fuploads%2FqmgnRptGT9wnAZPAo0u2%2Fimage.png?alt=media&amp;token=9ad970f7-f788-44fb-80f8-328356e45930" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.blackhole.xyz/protocol-design/how-to-swap.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
