# On-Chain Swap

Click under the 'From' field where the cursor shows in the below image in order to select the chain and token. In this example, we are going to swap USDC.E on Sonic to the STS token.

<figure><img src="/files/8z5s2OcWR0sJj3C51qD8" alt="" width="417"><figcaption></figcaption></figure>

Once you've clicked the 'From' field, you'll see the following, where you can select a network and token you would like to swap. If the stS token isn't near the top of the list for you, you can use the search field to find the token. We'll be selecting the Sonic Chain and USDC.e token for this example.

<figure><img src="/files/gFVlQdxNHOnHQwhpV9Rj" alt="" width="415"><figcaption></figcaption></figure>

In the app, you'll now click on the field below the 'To' in order to select the destination chain and token.

<figure><img src="/files/rfAj8r0ukESOPOaTt67n" alt="" width="418"><figcaption><p>As this is an on-chain swap, select the Sonic network and the STS token.</p></figcaption></figure>

Once you have selected the pair and amount, click "Swap USDC.e to stS." Note: the gas tank icon can be clicked to select the option to use the blockchains native gas token for the transactions, and the leaf icon can be selected to use fly.trade's gasless feature, which will use they token you are swapping to pay for the gas, just in case you do not have the native gas token.

<figure><img src="/files/Xxt2ZR6KDOZ64eJk4EgM" alt="" width="419"><figcaption></figcaption></figure>

After clicking 'Swap,' your wallet will prompt you to confirm the transaction with an estimated gas fee. Here is where you can adjust the amount of gas you want to spend if that is something you're comfortable with, but most people leave it at the suggested amount.

<figure><img src="/files/MMy7yF3MpWL9IlUT7kKA" alt="" width="423"><figcaption></figcaption></figure>

After 'Confirming' the transaction, just wait a bit and you can either click on the bar that appears once the swap is completed in the upper right of the screen, or you can click on the Wallet icon in the upper right of the web page to bring up the sidebar and select your history to view all previous transactions.

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

<figure><img src="/files/fjTOwXbjoyDiylrwtGoB" alt="" width="390"><figcaption></figcaption></figure>

You've just completed your first swap through fly.trade!&#x20;


---

# 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.fly.trade/flycn/guides/on-chain-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.
