# Swap

Swap tokens quickly and seamlessly - execute market orders with ease, while getting the best available price without the hassle of advanced configurations.

🔗 <https://app.oxium.xyz/swap>

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

## Step by Step Manual:

#### **Step 1: Connect Your Wallet**

Click the **"Connect Wallet"** button at the bottom of the swap interface. This will open a pop-up for selecting and authorizing your wallet, allowing it to interact with Oxium’s DApp on the chosen network.

**Disconnecting Your Wallet**: To disconnect your wallet, click on your wallet address in the top right corner. This will bring up a small pop-up with options to **Copy Address** and **Disconnect**. Click **Disconnect** to securely log out your wallet from the DApp.

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

#### **Step 2: Select Tokens for Swapping**

* With your wallet connected and network set, proceed with choosing the tokens for the swap.
* **Sell** and **Buy Sections**: The swap interface is divided into two main sections:
  * **Sell**: The token you’re offering in the swap.
  * **Buy**: The token you’ll receive in exchange.

1. **Token Selection**: Click the dropdown next to each token icon to select the token type. The available options may vary depending on the selected network.
2. **Enter Amount**:
   * **Sell Amount**: Enter the amount of the token you want to swap in the **Sell** field. An equivalent USD value is displayed below for reference.
   * **Buy Amount**: After entering the sell amount, the buy amount will auto-calculate based on the current market rate.

If you wish to reverse the **Sell** and **Buy** tokens, you can click **Swap Direction** button (↔) between the Sell and Buy sections to reverse the tokens and quickly switch the trade direction. This will instantly switch the tokens, making the **Buy** token the **Sell** token, and vice versa, without needing to re-enter amounts.

**Note**: If the swap amount exceeds your balance, an **"Insufficient Balance"** message will appear. Make sure you have enough tokens to proceed.

#### **Step 3: Set Slippage Tolerance**

This controls the maximum price variation you’re willing to accept for the trade.

* **Available Options**: Choose from 0.1%, 0.5%, 1%, or set a **custom percentage**.
* **Use Case**: A lower tolerance limits price variation but may cause failed transactions if prices move. Higher tolerance increases the success rate but allows for more price fluctuation.

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

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

#### **Step 4: Confirm Swap Details**

* Double-check all details, including token selections, amounts, and slippage tolerance.

#### **Step 5: Execute the Swap**

1. **Swap Button**: When ready, click the **"Swap"** button.
2. **Wallet Confirmation**: Approve the transaction in your connected wallet, including any gas fees required by the network.

#### **Additional Interface Elements**

**Network and Account Information**: Located in the top right corner, this area shows both your network and wallet address. You can switch networks or wallet anytime by using these buttons.


---

# 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.oxium.xyz/dapp-guide/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.
