> For the complete documentation index, see [llms.txt](https://docs.stafihub.io/welcome-to-stafihub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stafihub.io/welcome-to-stafihub/user/user-guide/stafihub-rbridge-guide.md).

# StaFiHub rBridge Guide

[StaFiHub](https://app.stafihub.io/rToken) has integrated the IBC protocol, the token assets of the Cosmos ecosystem can be swapped to StaFiHub through [rBridge](https://app.stafihub.io/rBridge), and the rToken assets on the StaFiHub can be swapped to the chains support the IBC protocol, such as swap ATOM from CosmosHub to StaFiHub, swap ATOM from StaFiHub to CosmosHub, swap rATOM from StaFiHub to CosmosHub and swap rATOM from CosmosHub to StaFiHub.

This guide will take swapping ATOM to StaFiHub and swapping rATOM to CosmosHub as examples to demonstrate rBridge on the StaFiHub how to work.

## Swap ATOM from CosmosHub to StaFiHub

1.Enter [rBridge](https://app.stafihub.io/rBridge) page and operate as shown in the picture:

select the chains before and after swapping: CosmosHub & StaFiHub.

Select the token: ATOM.

Enter the ATOM amount that will be swapped.

Select the receiving address: the receiving address must be StaFiHub address.

Then click “swap”.

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

2.Click ”Approve” to sign for this transaction.

<img src="/files/hnCKfO8St0EYl424Oks0" alt="" data-size="original">

3.Wait a moment and then you will see the prompt of successful swap.

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

4.“Notification” in the upper right corner will prompt swap status.

Click "Confirmed" to get the details of the transaction.

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

## Swap rATOM from StaFiHub to CosmosHub

1.Enter [rBridge](https://app.stafihub.io/rBridge) page and operate as shown in the picture:

select the chains before and after swapping: StaFiHub & CosmosHub.

Select the token: rATOM.

Enter the rATOM amount that will be swapped.

Select the receiving address: the receiving address must be Cosmos address.

Then click “swap”.

**Note:** Please make sure you have enough FIS in your StaFiHub account to pay for the commission before swapping. If not, you can try to use “[Fee Station](https://app.stafihub.io/feeStation)” to swap native ATOM/IRIS/HUAHUA and get ICS-20 FIS.

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

2.Click ”Approve” to sign for this transaction.

![](/files/NdWlT6K7bKpvSpLDy0JE)

3.Wait a moment and then you will see the prompt of successful swap.

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

4.“Notification” in the upper right corner will prompt swap status.

Click "Confirmed" to get the details of the transaction.

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