Links

Swaps

Perform a token swap with Railway DEX
Railway supports swapping from both 0x and 0zk addresses through Railway DEX. Easily swap any ERC-20 through the 0x API (the same DEX aggregation tool powering Matcha.xyz). Learn more about Railway DEX here.

Public Swaps (0x Address)

  1. 1.
    From your Public Wallet, click "Swap" to access Railway DEX.
  1. 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.
  1. 3.
    To modify swap settings like slippage, click the "Settings" icon.
  1. 4.
    By default, slippage is set to 1%. Drag the slider to set it anywhere between 0.1%-20%. Click "Save" to set slippage.
  1. 5.
    Click "Review order" and enter your password to continue.
  1. 6.
    Click "Swap" to submit the transaction. You can also set a custom fee by clicking the "Network Fee" box.
  1. 7.
    You will receive a confirmation of the swap. View the details of the transaction from the "Activity" tab or a block explorer.

Private Swaps (0zk Address)

  1. 1.
    To switch between Public and Private Swaps, click the button as below.
  1. 2.
    Slippage settings for Private Swaps default to 5% to account for additional transaction time. Like Public Swaps, you can set slippage to between 0.1% and 20%.
  1. 3.
    Select the swap tokens. Private Swaps do not need a token approval transaction. Click "Review Order" and enter your password to continue.
  1. 4.
    Click "Generate Proof" to prepare the transaction. To set a custom Relayer Fee, press the "Relayer Fee" box. To Self-Relay the transaction, see Self-Relaying.
  1. 5.
    Click "Swap" to submit the transaction to the selected Relayer.
  1. 6.
    You will receive a notification of the status of the swap. Click the "Activity" tab to view your transaction history.
Last modified 6mo ago