# Doing Swap

Now that you have successfully added liquidity to a pool, let's move on to the next step: doing swaps. Swapping tokens on Soroswap allows you to exchange one token for another within the liquidity pool. Follow the steps below to perform a swap:

## Step 1: Access Soroswap

Visit the official [Soroswap.Finance](https://soroswap.finance/) website.

Click the “Launch App” button on the homepage to access Soroswap’s decentralized platform. This action will direct you to the swap interface.

##

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-0c01de10e5190e8054bb1128afdbbacd4c8f0bbe%2FCaptura%20de%20pantalla%202025-04-25%20a%20las%2012.24.18.png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 2: Connect Your Wallet to Soroswap.Finance

1. **Choose a Stellar Wallet:** Select a wallet compatible with the Stellar network. For assistance, refer to this article: [Guide to Choosing a Stellar Wallet](https://dev.to/soroswap/guide-to-choosing-wallet-for-the-stellar-network-53k1).

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-19a279d46fe13d56d7c862f48b0324ce9bbfcc62%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2018.21.42.png?alt=media" alt=""><figcaption></figcaption></figure>

2. **Acquire Stellar (XLM):** Purchase XLM from a reputable exchange or transfer it from another wallet if you already possess some.
3. **Deposit XLM into Your Wallet:** Transfer the XLM to your Stellar wallet address.

> If this is your first time, ensure you acquire and transfer Stellar (XLM) to your wallet.

## Step 3: Navigate the Soroswap Finance Interface

Once your Stellar wallet is connected, familiarize yourself with the Soroswap dashboard. It displays your account details, token balances, and options for swapping tokens and managing your assets.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-19254150312bc51fedc2650eba80de090146d490%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2018.44.15.png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 4: Execute a Token Swap

1. **Select Tokens:** Choose the tokens you wish to swap from and to.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-028d315a8334a5e013133f08cf7e6a51b15ad94f%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2018.28.46.png?alt=media" alt=""><figcaption></figcaption></figure>

2. **Enter Amount:** Specify the amount of tokens you want to exchange.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-ebb7e4516cea0340ed3c7122028c29f797beadd9%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2018.51.21.png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 5: Trustlines

When swapping a new token for the first time on Soroswap.Finance, you’ll need to sign a "trustline" transaction. Trustlines authorize your account to hold and exchange the specific asset.

1. **Transaction Request:** A transaction request will be sent to authorize your wallet to hold and trade the new token.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-174a81812a033c88923111c37601f0e9b1b702d2%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2018.30.06.png?alt=media" alt=""><figcaption></figcaption></figure>

2. **Sign the Trustline Transaction:** Sign the transaction to authorize the trustline, allowing your wallet to manage the new asset.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-bd390beaed9c39697006e174aa726d128723e9a8%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2019.16.39.png?alt=media" alt=""><figcaption></figcaption></figure>

For more information, refer to the official documentation on [trustlines](https://docs.soroswap.finance/01-concepts/trustlines).

## Step 6: Confirm the transaction

1. **Sign the Transaction:** Your Freighter wallet will display the transaction details. Review and click “Approve” to confirm the swap.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-ab5f0c0e5d688bcfec73f61bc64cc3161981e12d%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2016.20.22.png?alt=media" alt=""><figcaption></figcaption></figure>

Congratulations! You have successfully completed a swap on Soroswap.Finance Now.\\

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-1bd91420f318da557337e93a20aeabc0f03fc985%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2021.01.45.png?alt=media" alt=""><figcaption></figcaption></figure>

## Step 7: Check That Your Transaction Went Through

After signing the transaction, it's important to confirm that everything went smoothly. To do this, check the details in your wallet or by using one of the blockchain explorers. This step ensures that the token swap has been completed and that the new tokens are now visible in your balance.

<figure><img src="https://2586514506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnOjEfj1qCoVgPEQ3cl02%2Fuploads%2Fgit-blob-9a8dedc82a9486dc6c7b2f6113da1575b70352e3%2FCaptura%20de%20pantalla%202024-09-18%20a%20las%2021.58.54.png?alt=media" alt=""><figcaption></figcaption></figure>

Once the transaction is confirmed, you’ll see a success message indicating the swap is complete. At this point, you can review the transaction details by selecting one of these options:

* [**View in Stellar.Expert**](https://stellar.expert/explorer)
* [**View in StellarChain**](https://stellarchain.io/)

### **Best Practices**

1. **Sufficient XLM for Fees:** Ensure your wallet contains enough XLM to cover transaction fees.
2. **Review Trustlines:** Confirm that all necessary trustlines are established before initiating a swap.
3. **Check Transaction History:** Verify in your wallet that the swap is complete and that the new tokens are reflected in your balance.
