# Swap $RICH🔁$ICP In-App

{% hint style="warning" %}
You'll need a a bit of ICP in your **RE Wallet** for gas to use Swap.

**Go here ->** [<mark style="color:red;">**How to Transfer $ICP from your ICP Wallet to your RE Wallet**</mark>](/red-envelope-user-guide/transfer-usdicp-icp-wallet-re-wallet.md)
{% endhint %}

## Preswap & Swap Commands

The <mark style="color:red;">**/preswap**</mark> command allows you to view the outcomes before performing a swap.&#x20;

The Preswap function pulls up the current ICP/RICH exchange rate for your review before you swap.

Let’s take a look at the <mark style="color:red;">**/preswap**</mark> and <mark style="color:red;">**/swap**</mark> commands.

<figure><img src="https://miro.medium.com/v2/resize:fit:514/0*3hxddzs-GIvI8VIj" alt="" height="262" width="514"><figcaption></figcaption></figure>

## Swap $ICP -> $RICH In-app <a href="#id-8e81" id="id-8e81"></a>

**Preswap Command:**

Type <mark style="color:red;">**/preswap**</mark>

<figure><img src="https://miro.medium.com/v2/resize:fit:528/1*g9LLGVMGo08Vp2yYU22QUg.png" alt="" height="221" width="528"><figcaption></figcaption></figure>

I want to swap 0.5 ICP for some $RICH.

*How many $RICH can I get for 0.5 ICP?*

Let’s check.

<figure><img src="https://miro.medium.com/v2/resize:fit:274/0*rVBa12khDpz5Yt96" alt="" height="57" width="274"><figcaption></figcaption></figure>

Here are the outcomes returned:

<figure><img src="https://miro.medium.com/v2/resize:fit:529/0*1Lpxx9R7VshxtBKi" alt="" height="537" width="529"><figcaption></figcaption></figure>

Ok, I’ll take **49072.81** $RICH for **0.05** $ICP.

Let's swap.

<figure><img src="https://miro.medium.com/v2/resize:fit:244/0*iYX1ejCkzS7F92Ec" alt="" height="53" width="244"><figcaption></figcaption></figure>

Immediately I receive confirmation that my $ICP has been swapped for $RICH.

<figure><img src="https://miro.medium.com/v2/resize:fit:379/0*BgpTRzq1TgY86stp" alt="" height="70" width="379"><figcaption></figcaption></figure>

## Swap $RICH->$ICP In-app <a href="#id-1ba5" id="id-1ba5"></a>

If I want to swap $RICH for $ICP, it is very similar, but with no need to add “ICP” to the swap commands.

I want to swap 1000 $RICH for ICP.

*How much ICP can I get?*

Let’s check.

<figure><img src="https://miro.medium.com/v2/resize:fit:541/0*G27X8mTXxIx_8qdJ" alt="" height="600" width="541"><figcaption></figcaption></figure>

Looks fine, let’s swap!

<figure><img src="https://miro.medium.com/v2/resize:fit:351/0*VzxggqBMjSHxx9dS" alt="" height="141" width="351"><figcaption></figcaption></figure>

{% hint style="info" %}
**REMEMBER:** You can always check your new wallet balance by typing command <mark style="color:red;">**/wallet**</mark>
{% endhint %}


---

# 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://red-envelope.gitbook.io/red-envelope-user-guide/swap-usdrich-usdicp-in-app.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.
