# Token Swap

## **🚀 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://dexlab.space/swap>

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

<figure><img src="/files/Jp3acJVXC9OFpTtpAfkp" 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="/files/LyH59Ekg2UepzBdV85JY" 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="/files/PTfS03O9aljEgWNRvBvi" 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="/files/bbzZhuYjM6PuryqUH7M0" 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: 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.dexlab.space/products/dex-swap-lp-pool/token-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.
