> For the complete documentation index, see [llms.txt](https://docs.wheelx.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wheelx.fi/overview/how-it-works/swapping.md).

# Swapping

#### Token Swaps

WheelX supports both single-chain and cross-chain token swaps, allowing users to trade assets seamlessly across different environments.

* **For single-chain swaps**

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

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

Users can exchange tokens within the same blockchain by leveraging aggregated liquidity from multiple DEXs. This ensures that trades are executed with optimal pricing and minimal slippage without requiring users to manually compare different platforms.

For cross-chain swaps

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

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

WheelX extends this capability across networks by combining swapping and bridging into a unified flow. Instead of handling multiple steps manually, users can swap assets from one chain to another in a single transaction, with the routing system automatically determining the most efficient path.


---

# 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.wheelx.fi/overview/how-it-works/swapping.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.
