# Use Private Swap

## First Thing First: Prepare a Railgun supported Wallet

To use Private Mode, users must have a wallet that support Railgun and 0zk addresses. Your tokens into a compatible privacy smart contract of Railgun using a supported wallet interface which is very secure and standing the test of time, and thoroughly audited.&#x20;

{% hint style="info" %}
Check out a list of RAILGUN powered wallets [here](https://www.railgun.org/wallets.html).
{% endhint %}

Shielded balances are chain-specific. A shielded balance on Ethereum is distinct from shielded balances on PulseChain or other networks.

### RAILGUN → PulseChain

#### Step 1: Initiate an Intent to Receive WETH (PulseChain) in Liberty Swap

Within the Liberty Swap interface:

1. Connect your wallet
2. Select **Private Mode**.
3. Choose the supported private route (ETH → WETH).
4. Specify the amount to swap (subject to current private route limits).
5. Fill in the Destination Address.
6. Click \[**Swap**] then \[**Next**].
7. Copy LibertySwap’s given Railgun ZK address.

#### Step 2: Send ETH to Liberty Swap

&#x20;Within the RAILGUN-powered wallet:

1. Ensure you are operating on the **ZK (shielded) side**.
2. Initiate a transfer from your ZK address to Liberty Swap’s ZK address by pasting the Liberty Swap’s given ZK address into the Recipient box.
3. Enter the same amount as filled in the Liberty Swap interface in the previous step.

#### Step 3: Include the Private Memo

1. Copy the memo provided by LibertySwap.
2. Paste it into the **optional private memo field** in your RAILGUN wallet.
3. Generate the ZK proof.
4. Submit the transaction in your wallet.
5. Then confirm the transaction on the Liberty Swap side.

This memo enables Liberty Swap’s relay to correctly attribute and settle the incoming shielded transfer.

#### Step 4: DONE

The relayer executes the settlement and delivers WETH on PulseChain to the user instantly in less than a minute.

{% embed url="<https://x.com/LibertySwapFi/status/1998089117532573756>" %}

### PulseChain → RAILGUN

#### Step 1: Initiate an Intent to Receive ETH (Ethereum) in RAILGUN

Within the Liberty Swap interface:

1. Connect your wallet
2. Select **Private Mode**.
3. Choose the supported private route (WETH → ETH).
4. Specify the amount to swap (subject to current private route limits).
5. Fill in the Railgun Private 0zk Address.
6. Click \[**Swap**] then \[**Confirm**].

#### Step 2: Sign the Intent

Sign the intent as shown in your connected wallet.

#### Step 3: DONE

The relay executes the settlement and delivers ETH (RAILGUN) to the user in less than a minute.

{% embed url="<https://x.com/LibertySwapFi/status/1998089231407759485>" %}


---

# 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://docs.libertyswap.finance/how-to/protect-your-trading-privacy-with-libertyswap/use-private-swap.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.
