Shielding
Move tokens to any 0zk address
Please note, as of 6 November 2023, new shields have an Unshield-Only Standby Period of 1 hour. During this period, the only available action will be to unshield back to the original shielding address. This is due to the Private Proof of Innocence system.
Shielding transfers tokens from a public 0x address to a private 0zk address. When shielding, the 0zk address is completely private and never appears on the blockchain.
Once in a 0zk address, your funds are completely sealed from public view and no one can see what you do or what you hold. To read more about RAILGUN privacy, check out this article.
From a 0zk address, users can send, swap, and interact with DeFi privately.
For an alternative to Shielding through Railway Wallet, you can send funds to any 0zk address with https://tokenshielder.com.
Shielding Tokens into a 0zk Address
Click the token you would like to Shield. It's recommended to first Shield the networks base token or stablecoins like DAI or USDC to pay Broadcaster fees for private transactions.
From here you can easily send Public transactions, view your address/receive QR code, and Shield tokens into Railgun. Click "Shield" to continue.
RAILGUN supports Shielding to any 0zk address. Copy and paste a 0zk address into the highlighted box OR click "Select" to Shield to a saved address to continue.
We will shield tokens to the 0zk address associated with "My Wallet"
Enter the amount of tokens you want to Shield and click "Confirm amount".
Shielding the base token of a given network will auto-convert to the wrapped version, WMATIC for this example.
Click "Next" and enter your password.
Here you can view a summary of the Shielding transaction and fees paid (0.25%). To set a custom gas price click the "Network Fee" bar to see available options for fees. Click "Shield" to submit the transaction.
Navigate to your Private balance by clicking the "Private" button in the top right to view your freshly Shielded tokens.
Unshielding Tokens into a 0x Address
Click the token you would like to Unshield. For this example, we will use WMATIC. Click "Unshield" to continue.
Paste the 0x address into the recipient box. Click "Select" to see list of saved/associated addresses. You can Unshield tokens to any 0x address.
Next, enter the quantity of tokens you want to Unshield and click "Confirm amount".
If, Unshielding a network's base token, select how you want to receive the token, either wrapped (WETH, WBNB, or WMATIC) or native (ETH, BNB, or MATIC). If Unshielding to a new wallet, select native to pay for gas on the other side.
Enter your password.
Here you can view a summary of the Unshielding transaction and fees paid (0.25%). See the Self-Broadcasting section on how to Self-Broadcast a transaction. Click the Broadcaster Fee box to select Fee Token or select a higher or lower fee amount.
Click "Generate Proof" to prepare the transaction. Generated proofs are valid for about 3 minutes.
Click "Unshield" to submit the transaction to the selected Broadcaster.
If you wish to use a different Broadcaster or pay the transaction fee with a different token or amount, click the "Broadcaster Fee" box to see available options.
Once the transaction is confirmed by the blockchain, your tokens will be available in the destination 0x address.
Further Info
All RAILGUN fees can be paid with wrapped base network tokens or stablecoins, so you do not need to keep a private balance of ETH, BNB or MATIC for transactions from your 0zk address.
If this is your first time using Railway Wallet, it's a good idea to Unshield some of the base network token (ETH/BNB/MATIC) to a fresh 0x address to assist with Self-Broadcasting as a backup to the Broadcaster network.
Last updated