# Shield your ETH or WETH from MegaETH to Railgun

#### Before you start

You will need:

1. An EVM Wallet (Metamask, Rabby, Coinbase, etc.)
2. MegaETH network added to your wallet (find more information below)
3. ETH or WETH on MegaETH
4. A Railgun Private Address (starts with `0zk...`)

### Step 1: Connect your EVM Wallet

1. Go to [Liberty Swap Finance](https://libertyswap.finance/)
2. Click Connect Wallet
3. Select Your EVM Wallet
4. Switch the network in your wallet to MegaETH
5. Verify that your wallet shows ETH or WETH on MegaETH

### Step 2: Select Shield Mode

Inside Liberty Swap Finance's interface:

1. Choose **Shield Mode**
2. **Do not use** normal Swap or Bridge

Shield Mode means you're moving assets into the Railgun privacy system, not just bridging or swapping.

### Step 3: Select the source asset

In the **You Pay** field, you can:

1. Choose ETH or WETH on MegaETH
2. Enter the amount of coins you want to shield

### Step 4: Select the destination asset

In the **You Receive** field, you can:

1. Select **ETH (Railgun)**

### Step 5: Enter your Railgun Private Address

In the **Your Railgun Private 0zk Address** field, please paste your Railgun Private wallet address.

#### ⚠️ This is critical:

> This is NOT a normal EVM address (`0x...`)
>
> This is your zero-knowledge private wallet
>
> Only you can decrypt and access this balance

**If you enter the wrong 0zk address, your funds are permanently lost.**

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

### Step 6: Confirm the Shield transaction

1. Double check your **input assets and amount**
2. Double check your **Railgun address**
3. **Confirm the Shield transaction**

> MEGAETH INFORMATION FOR DEVELOPERS\
> \
> **Github:** <https://github.com/megaeth-labs>
>
> **Relevant repos**:
>
> \- [MegaEVM](https://github.com/megaeth-labs/mega-evm)
>
> \- [tokenregistry](https://github.com/megaeth-labs/mega-tokenlist)
>
> **Documentation:** <https://docs.megaeth.com/>
>
> **Relevant Sections**
>
> [Realtime API](https://docs.megaeth.com/realtime-api) - New RPC calls for faster and more-efficient apps.&#x20;
>
> \- Synchronous receipt return (realtime\_sendRawTransaction).
>
> \- Paginated log return (eth\_getLogsWithCursor)
>
> [MegaEVM](https://docs.megaeth.com/megaevm) - Nuances of MegaETH's gas model vs traditional EVM.
>
> [FAQs](https://docs.megaeth.com/faq) - Troubleshooting
>
> **Testnet Links**
>
> [RPC Endpoint](https://timothy.megaeth.com/rpc)
>
> [Faucet](https://docs.megaeth.com/faucet)&#x20;
>
> **Frontier and Mainnet Links**
>
> [Frontier Deployment Form](https://forms.gle/3gmnNCDEn2cW4eje8) - To deploy during Frontier phase
>
> Onboarding Doc \[to add]
>
> [OLI Registry](https://www.openlabelsinitiative.org/attest) - Label your contracts for easier tracking + integration
>
> [DefiLama](https://docs.llama.fi/list-your-project/submit-a-project) - Create an adapter for your project so it reflects on DefiLlama
>
> **Tools**
>
> [Fluffle.tools](https://www.fluffle.tools/) - Ecosystem list
>
> [Miniblocks.io](https://miniblocks.io/) - Chain visualizer and ecosystem stats&#x20;
>
> Explorer: Blockscout \[[testnet](https://megaeth-testnet-v2.blockscout.com/) | [mainnet](http://megaeth.blockscout.com/)]
>
> Explorer: Etherscan \[testnet | mainnet]
>
> [Mega tokenlist](https://github.com/megaeth-labs/mega-tokenlist)
>
> **Official Channels**
>
> [MegaETH Twitter](https://x.com/megaeth)
>
> [MegaETH Discord](https://discord.gg/megaeth)
>
> [MegaETH Telegram](https://t.me/megaeth_labs) (Announcements)
>
> **Design**
>
> [Brand kit](https://www.megaeth.com/brand-kit)
>
> **Team Members (On Telegram)**
>
> @S\_E\_Mud - Lead DevRel
>
> @OxBreadguy - GTM/CMO
>
> @heisenbruhhh - Head of Community
>
> @alexjultz - Community


---

# 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/shield-your-eth-or-weth-from-megaeth-to-railgun.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.
