# 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="/files/hjafQxN7weFUPqD0YkTn" 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="/files/UU10lGl0XnYYNpya7kqP" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/WV85u2NBRYyidCWkF3Ua" 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="/files/ThvgsV57zSbYXVl1MXHG" 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="/files/Zacx0zC3wcdgUA66RyI8" alt=""><figcaption></figcaption></figure>


---

# 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://help.railway.xyz/integrated-dapps/swaps.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.
