> For the complete documentation index, see [llms.txt](https://docs.dexlab.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dexlab.space/products/dex-swap-lp-pool/token-swap.md).

# Swap Tokens on Solana

How to swap tokens on Solana with DexLab. Exchange any Solana token in seconds through liquidity pools, straight from your wallet.

## **🚀 What is Token Swap?**

📌 **Token swapping lets you instantly exchange one token for another using a decentralized system.**

Instead of relying on buyers and sellers, swaps happen through **liquidity pools**, where tokens are automatically exchanged based on supply and demand.\
This ensures **fast, secure, and permissionless** trading, all happening directly from your wallet.

👉 **Go to Swap:** <https://app.dexlab.space/swap>

### **Step 1: Select Tokens to Swap**

<figure><img src="https://4258708058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLgGUCteWrA9nM5I3ts-887967055%2Fuploads%2FeNqmep8lF9ILzlbIndBD%2Fimage.png?alt=media&amp;token=974e5b0e-b06f-4cd3-8bc4-824b83b5e74d" alt="" width="301"><figcaption></figcaption></figure>

* **"You're paying"** → Choose the token you want to swap.
* **"To receive"** → Choose the token you want to receive.

### **Step 2: Enter Swap Amount**

<figure><img src="https://4258708058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLgGUCteWrA9nM5I3ts-887967055%2Fuploads%2FmQlZjUGk0AJo1idorUYW%2Fimage.png?alt=media&amp;token=900db176-d2c5-4673-a3c2-6340074c0b29" alt="" width="287"><figcaption></figcaption></figure>

* Type the amount of tokens you want to swap.
* Click **HALF** or **MAX** for quick selection of available balance.
* **Auto Calculation:** When you enter an amount for one token, the system will automatically calculate and display the equivalent amount for the other token based on the current exchange rate.

### **Step 3: View Estimated Output**

<figure><img src="https://4258708058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLgGUCteWrA9nM5I3ts-887967055%2Fuploads%2Fx3zXGxkOX9f0iOcnwzqa%2Fimage.png?alt=media&amp;token=fcc18285-87e9-43cb-9ba7-f2d4f0cab407" alt="" width="287"><figcaption></figcaption></figure>

* The system calculates how much of the second token you will receive.
* Rates are automatically adjusted based on liquidity and demand.

### **Step 4: Confirm & Complete the Swap**

<figure><img src="https://4258708058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLgGUCteWrA9nM5I3ts-887967055%2Fuploads%2F6kMMlD4hTifUna6dwnML%2Fimage.png?alt=media&amp;token=637aa7d8-fa2d-4ec8-8c58-760a3488dbf0" alt="" width="287"><figcaption></figcaption></figure>

* **Click the "SWAP" button** to proceed with the transaction.
* **Check the transaction details** in the confirmation wallet.
* **Approve the swap in your wallet** (e.g., Phantom, Solflare).
* **Wait for confirmation** – The transaction is processed on the blockchain.

✅ **Swap Complete!**

💡 **That's it! You've successfully swapped your tokens in just a few clicks! 🚀**


---

# 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.dexlab.space/products/dex-swap-lp-pool/token-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.
