> For the complete documentation index, see [llms.txt](https://docs.fwallet.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fwallet.net/web-fruits-wallet/juice-dex/swap.md).

# Swap

A Function that allows users to convert FRTS to BTC/ETH or BTC/ETH to FRTS in the user's wallet.

Access to the Juice/DEX function to perform the function.

**Step 1**

* Click on the "Juice DEX" menu to access the function.                                                                                   ![](/files/3BvNAuxUwWoUriKYeQmy)

**Step 2**

* Select the source coin (1) and enter the amount (2) you want to swap.

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

**Step 3**

* Select target coin (3) 🡪The number of coins you will receive (4) corresponds to the type of source coin you want to swap.

  <div align="left"><figure><img src="/files/oWWbyvG3lGEjGDfbAcs5" alt=""><figcaption></figcaption></figure></div>

**Step 4**

* Click ‘Swap’🡪  Redirect to the Exchange screen.

**Note:** You can only SWAP from FRTS to ETH or BTC, ETH to FRTS, and BTC to FRTS.

Click ![](/files/yTrfQlNECjVwaINNEhid) to change the position of the source coin and target coin or vice versa

**Step 5**

* If Source is Fruits and the Destination is coin (ETH/BTC) then display Swap (FRTS -> coin).
* If Source is coin (ETH/BTC) and the Destination is Fruits then display Swap (coin -> FRTS).

Click to confirm the transaction swap between the two coins 🡪 Display the “Confirm Order” popup.                                                                                                                                          ![](/files/1D5ACQ787ihDnofXpzG8)![](/files/KYRGjHsL0iV3YO4dBpwc)

**Note:** Includes the following fees

* Transaction fee:
  * There is no fee to convert from FRTS to BTC/ETH.
  * Transaction fees from ETH/BTC to FRTS are automatically updated according to the exchange.
* Swap fee: fee for swap

**Step 6**

* For buy order
  * Step 5.1: Enter a valid PIN
  * Step 5.2: Click the Buy sell button => Successfully create a Swap order
* For sell order
  * Click the Sell button: Successfully create a Swap order

If after a period of time, the user has not confirmed the swap but the swap rate changes, the error message "Create swap failed, please try again" is displayed when clicking the button.![](/files/1bCdI0P9NIwRv9GxTHqm) ![](/files/K8Y5WYjAkvcJJG2aHq4a)                               &#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fwallet.net/web-fruits-wallet/juice-dex/swap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
