# Swap Tokens

You can exchange cryptocurrencies using Defi App.

Defi App facilitates swapping tokens with an intent-based system that executes your transaction based on your desired outcome rather than a specific manual configuration. You can view and edit the proposed swap configuration for full control.

{% hint style="info" %}
Learn more about [Intent-Based Swaps & Execution](/knowledge-base/reference/intent-swaps.md).&#x20;
{% endhint %}

***

## Trade Fee

Defi App charges <code class="expression">space.vars.SWAP\_FEE</code> of the notional value of each swap.

***

## Swap a Token

To swap from one token to the equivalent value of another:

{% stepper %}
{% step %}

### On your Trade dashboard, activate the wallet containing the token you want to exchange.

To change an active wallet, go to **Settings,** then to **Wallets,** and click on the wallet you want to change. Select the wallet you want to use instead. Learn more about managing your active wallet [here](/knowledge-base/wallets/manage-your-wallets.md).

{% hint style="warning" %}
Before making a transaction, ensure that your active wallets are set properly, especially if you hold similar assets in different wallets.
{% endhint %}
{% endstep %}

{% step %}

### Select the token that you want to exchange.

Select the token that you want to give in exchange for another. Choose or search from the first dropdown of the swap widget on the right side of your **Trade** dashboard.

<div align="left"><figure><img src="/files/wiOnGueT87dyVCoiv8me" alt="" width="525"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Select the token that you want to receive.

Select the token that you want to receive. Choose or search from the second dropdown of the swap widget on the right side of your **Trade** dashboard.

<div align="left"><figure><img src="/files/vHj59FqhOE0vP3Hqeo1O" alt="" width="287"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Enter an amount to exchange and configure swap settings.

Enter an amount of your token to exchange. From the configuration menu, you can set:

* Slippage tolerance
* Solana transaction mode, if applicable

<div align="left"><figure><img src="/files/TrF4NCncGsidh8wsXcpC" alt="" width="284"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Review and confirm the swap.

Click the token and/or provider icon to preview the trade. Defi App displays how the trade will be executed, including the provider it will use and estimated fees.

Click **Swap** to execute the trade.
{% endstep %}

{% step %}

### You're done!

Your new token balances are reflected in your portfolio.
{% endstep %}
{% endstepper %}


---

# 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.defi.app/knowledge-base/trade-and-earn/swap-tokens.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.
