# How to Swap

## Step 1 - Connect Your Wallet

If you didn't complete this step, visit [How to Create & Connect a Wallet](/dragonswap/getting-started/how-to-create-and-connect-a-wallet.md).

## Step 2 - Go to Swap Page

Open the [DragonSwap](https://test.dragonswap.app/) web app. Next, open the [Swap Page](https://test.dragonswap.app/swap).

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

## Step 3 - Select Token 1

Search for and select the token you wish to swap. You can browse the token list or search for a token by name.

<figure><img src="/files/3gvqlLVHEUD3SgCNI1Op" alt=""><figcaption></figcaption></figure>

## Step 4 - Select Token 2

Search for and select the token you wish to swap for. You can browse the token list or search for a token by name or contract address.

<figure><img src="/files/3gvqlLVHEUD3SgCNI1Op" alt=""><figcaption></figcaption></figure>

## Step 5 - Enter the Amount to Swap

Enter the amount you would like to swap, receive, or select the “Max” option.

The “Max” option automatically inputs the total amount of the token you have available in your wallet for swapping.

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

## Step 6 - Approve Spending the Token

In your wallet, approve spending for the token you are swapping.

Give one-time or permanent approval for spending selected token.

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

## Step 7 - Approve in Wallet

You need to confirm transaction in wallet by clicking on Confirm button.

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

## Step 8 - Swap

Once confirmed, your swap is ready to be performed. Click Swap.

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

## Step 9 - Success

You have now successfully swapped with DragonSwap! To view your transaction, you can click “View on Explorer".

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


---

# 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.dragonswap.app/dragonswap/guides/trading/how-to-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.
