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

# How to swap tokens

Before beginning this part, make sure that you have CTC to pay for the swap gas fee. \
\
Click on Swap at the top of the page to initiate the process. \
Select the 2 token you want to swap.

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

Enter either the amount you want to swap from, or the amount you want to swap for. <br>

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

You will now see the corresponding amount on the second token if you proceed with the swap. Click on "Swap" to proceed.

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

You will now see  preview of the swap you are about to make. If you are comfortable with the output of the swap, you can now click "Swap" once more.<br>

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

You can now confirm the transaction by tapping on "Submit" in your Credit Wallet. <br>

<figure><img src="/files/TUKcxJhgFbg9kfD9T1M2" alt="" width="375"><figcaption></figcaption></figure>

Upon confirming the swap, you will get a "Swap pending" notice. It may take a few seconds before the confirmation is received for the transaction. <br>

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

Once the transaction is confirmed on the blockchain, you will see : "Swap confirmed"<br>

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

You should now see the swapped tokens in you wallet along with the transaction in the activity tab.


---

# 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.creditcoin.org/dex/general/how-to-swap-tokens.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.
