# Swaps

*Railway supports swapping from both 0x and 0zk addresses through Railway DEX. Easily swap any ERC-20 through the* [*0x API*](https://www.0x.org/) *(the same DEX aggregation tool powering Matcha.xyz). Learn more about Railway DEX* [*here*](https://docs.railgun.org/wiki/learn/railway-dex-swaps)*.*

### Swaps&#x20;

1. From your Public Wallet, **click "dApps" and then "Railway DEX"**.
2. **Select the tokens you want to swap**. *You can import any token if it's not in the current list by pasting its contract address into the token selector.* **Click "Approve"** if this is the first time you're swapping the token.

<figure><img src="https://3741015441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFRXmTLdvAfIvul1HRIh%2Fuploads%2Fr3wu9RfR8EJT8rdAA28M%2FScreenshot_1_1.png?alt=media&#x26;token=536b8541-79a0-42a5-855f-a9d30cef5b83" alt="" width="375"><figcaption></figcaption></figure>

3. To modify swap settings like slippage, **click the "Settings" icon**.
4. By default, slippage is set to 1%. **Drag the slider to set it anywhere between 0.1%-20%. Click "Save" to set slippage.**

<figure><img src="https://3741015441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFRXmTLdvAfIvul1HRIh%2Fuploads%2FAqZEkSonSCctGSeLrwLW%2FScreenshot_3.png?alt=media&#x26;token=bfe36c3a-b231-4a6a-8c42-d97a6316d63b" alt=""><figcaption></figcaption></figure>

5. **Click "Review order" and enter your password to continue. Select** [**Public Broadcaster**](https://help.railway.xyz/transactions/public-broadcasting) **or** [**Self-Broadcast**](https://help.railway.xyz/transactions/self-signing) **then click "Generate Proof"**

<figure><img src="https://3741015441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFRXmTLdvAfIvul1HRIh%2Fuploads%2FvMF1qYFZBrcW8uqe9Gt9%2FScreenshot_4.png?alt=media&#x26;token=c29f9905-566e-4758-a6d8-473b7a813a41" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3741015441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFRXmTLdvAfIvul1HRIh%2Fuploads%2Fzo1o2uGaykjOq1xgjE59%2FScreenshot_5.png?alt=media&#x26;token=5dbbe2a2-8174-4d16-bc40-33f2a629b331" alt=""><figcaption></figcaption></figure>

5. **Click "Swap" to submit the transaction**. You can also set a custom fee by **clicking the "Network Fee" box**.

<figure><img src="https://3741015441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFRXmTLdvAfIvul1HRIh%2Fuploads%2FAoQhi3dTStRQUGXYbjAH%2FScreenshot_6.png?alt=media&#x26;token=6491a6ce-fc9a-481f-bcba-ab52dde8470b" alt=""><figcaption></figcaption></figure>

4. You will receive a confirmation of the swap. View the details of the transaction from the **"Activity" tab or a block explorer**.

<figure><img src="https://3741015441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqFRXmTLdvAfIvul1HRIh%2Fuploads%2FEnuDFN5jvItaqw2BTsBZ%2FScreenshot_7.png?alt=media&#x26;token=3717eae0-1020-495c-b075-ba0e09acfae7" alt=""><figcaption></figcaption></figure>
