# Snowbridge: Sepolia \<\> Rococo Walkthrough

**URL:** <https://forum.polkadot.network/t/snowbridge-sepolia-rococo-walkthrough/7452>\
**Category:** Tech Talk\
**Created:** [April 16, 2024, 10:11am UTC](https://forum.polkadot.network/t/snowbridge-sepolia-rococo-walkthrough/7452 "2024-04-16T10:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_rich](https://avatars.discourse-cdn.com/v4/letter/_/7bcc69/32.png) [@\_rich](https://forum.polkadot.network/u/_rich)\
**Post date:** [April 16, 2024, 10:11am UTC](https://forum.polkadot.network/t/snowbridge-sepolia-rococo-walkthrough/7452/1 "2024-04-16T10:11:11Z")

</div>

We (Parity Success) tested the bridge to transfer wrapped Eth from Sepolia to Rococo and are sharing our experience / the steps we took in order for others to follow and try out the bridge ahead of mainnet.

Note that this is not the intended journey for the typical consumer user, but may help developers in terms of quickly ramping up on the bridge’s functionality.

For a regular user, you can try out the demo frontend here: [https://snowbridge-ui.netlify.app/](https://snowbridge-ui.netlify.app/)

**Snowbridge docs:** [Rococo-Sepolia Token Transfers | Snowbridge](https://docs.snowbridge.network/rococo-testnet/rococo-sepolia-token-transfers)

# The process:

**Step 1: Setup a test Ethereum wallet with Metamask**

* * *

**Step 2: Get some Sepolia-Eth.**  
There are many faucets that you can use in order to do so, however many of them require a small Eth balance, social verification, or device attestation in order to acquire Sepolia-Eth. Examples:

- [Sepolia ETH Faucet - Get 0.5 Sepolia ETH (Free)](https://faucet.chainstack.com/sepolia-testnet-faucet)
- [https://www.sepoliafaucet.io/](https://www.sepoliafaucet.io/)
- [Faucet - Ethereum Sepolia | Alchemy](https://www.alchemy.com/faucets/ethereum-sepolia)
- [Ethereum Sepolia Faucet - Free Testnet ETH Tokens](https://faucet.quicknode.com/ethereum/sepolia)
- [https://access.rockx.com/faucet-sepolia](https://access.rockx.com/faucet-sepolia)

However, if you like me would like to acquire Sepolia-Eth without taking these steps there is another option, this is a POW faucet, I left it running for a while and got some Sepolia-Eth without needing to take these steps:

- [https://sepolia-faucet.pk910.de/](https://sepolia-faucet.pk910.de/)

Just add your test Ethereum address setup in step 1 and start mining. In 2 hours you will have ~2 Sepolia-Eth. You won’t need that much and 30 min would likely be enough mining.

Once you are done mining, claim your Sepolia-Eth and you can move to the next step.

* * *

**Step 3: Deposit ETH:**  
You will need WETH (ERC-20 Wrapped Ether) to be able to send it over the bridge.

- Go to the WETH contract: [0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14](https://sepolia.etherscan.io/address/0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14)
- Click on the **Contracts tab**.
- Click on the **Write Contract** tab. ([shortcut](https://sepolia.etherscan.io/address/0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14#writeContract) to this step)
- **Connect your wallet**.
- Click on the **deposit** dropdown.
- Enter parameters.

**UX:**

1. You should see the screen below.  
**Parameters:**  
a) **Deposit:** `0.000000005`  
_(i.e. `0.000000005` Ether)_  

2. Metamask will open once you click the **write** button:  

3. **Click confirm**

Congratulations, once the transaction finalises you now have 0.000000005 WETH.

* * *

**Step 4: Approve Snowbridge as a spender for your WETH:**  
Next you are going to approve Snowbridge as the spender for the amount of WETH you want to send across the bridge. In this example: `0.000000005 Ether`

- Go to the WETH contract (you should still have it open): [0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14](https://sepolia.etherscan.io/address/0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14)
- On the **Contracts tab** click on the **Write Contract** ([shortcut](https://sepolia.etherscan.io/address/0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14#writeContract) to this step)
- Wallet should still be connected, if not connect it.
- Click **approve** dropdown.
- Enter parameters.

**UX:**

1. You should see the screen below.  
**Parameters:**  
a) **guy (address):**`0x5b4909ce6ca82d2ce23bd46738953c7959e710cd`  
_(i.e. Snowbridge’s Gateway contract on Sepolia)_  
b) **wad (uint256):** `5000000000`  
_(i.e. 0.000000005 Ether in this example)_

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/3/32369e769ba7b9eb3edf81743fb00f58714ebc0e.png)

If custom spending cap is correct click **Next** :

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/e/efa7aaefcc96ce8e109bfddc70f536e8060f590c.png)

**Approve** the spend of 0.000000005 Ether:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/c/c570169864a5e8e50d1a0901781bfd2ddd5c7839.png)

Congratulations, have approved Snowbridge to send 0.000000005 WETH across the bridge.

* * *

**Step 5: Create a test Polkadot account on Rococo (to recieve your WETH in future steps):**

- Ensure you have the Polkadot JS extension installed.
- Go to dotapps: [https://cloudflare-ipfs.com/ipns/dotapps.io/#/explorer](https://cloudflare-ipfs.com/ipns/dotapps.io/#/explorer)
- Create a new test account in the Polkadot JS extension.
- Check the accounts tab to see it connected: [https://cloudflare-ipfs.com/ipns/dotapps.io/#/accounts](https://cloudflare-ipfs.com/ipns/dotapps.io/#/accounts)
- You will need ROC tokens so go to the faucet and get some: [https://faucet.polkadot.io/](https://faucet.polkadot.io/)
- Paste your new Polkadot account address in the faucet and confirm.
- When you go back to the dotapps account tab you will see your account has 100 ROC.

**UX:**  
Create an account with the extension, save youre mnemonic if you plan to use the account in the future.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/b/bac404416d4ead9498ccfbfdd5842686183c3644.png)

Your account should appear here on the accounts tab of dotapps:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/b/b0fdffc2a3fdf49dab40bc7681bcbeb05386e87a.png)

On the faucet paste your address as below and get some ROCs!

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/c/c43a7308d5ac68dd09b299cc72abee0222e26b51.jpeg)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/0/0a33c1f26e758a2cce4a8c4a7d969cd7f97ceb8b.jpeg)

Your account should now be credited with 100ROCs thanks to the previous step.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/0/0af229a3fab7f1e82fbd8aacf2fefdec23d4c5e8.png)

* * *

**Step 6: Creation of an Account on Asset Hub:**

While you now have a Polkadot address, you need to activate it so to speak on AssetHub.

This is done by sending (teleporting) some of you the ROCs you just acquired to the same address on AssetHub.

**This needs to be done before you can send your WETH to your Polkadot address!**  
Your account on assethub will need a minimum of `0.000033333333` ROCs for you to be able to recieve WETH, we will send a bit extra to conver fees.

- Go to the dotapps extrinsic screen, and click on decode ([shortcut](https://cloudflare-ipfs.com/ipns/dotapps.io/#/extrinsics/decode))
- Paste in the encoded call to send 0.0001 ROC to parachain 1000 (Asset Hub) which will cover the existential deposit and fees for the transfer.
- Click on the Submission tab
- Scroll down to: **X1: XcmMV3Junction parameter and add the test Polakdot address you created**.
- Sign and submit to send the ROCs to this address on AssetHub.

**UX:**

Navigate to the Extrinsics:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/4/485c5dfa7b86affcdd2b60634db927184a8e4b12.png)

Go to the Decode tab on the Extrinsics page:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/8/847092e42b3dea49af672268da629f44b3090082.png)

Paste the encoded call. This one:  
`0x630b03000100a10f030001010000000000000000000000000000000000000000000000000000000000000000000304000000000284d7170000000000`

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/a/a66624533ef303675cc6e2afcce117c81d105c31.png)

Navigate to the Submission tab.

Ensure your account is selected or you wont be able to sign and submit:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/2/213fb7396f0af0db8ed18b5644fa1a7558b5a23f.png)

Scroll down:

Add **YOUR OWN** address as the **X1: XcmMV3Junction** `beneficiary` parameter, in this case mine was: 5DSgBJUyMoKeSHABxTsAdmSopCe8Xx1GxhKyjfb5d66ozrTe:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/2/2f6ee5a0d8fca4cf2b181e6270fd86b6bbb44e39.png)

Scroll down and submit the transaction:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/2/29b9b27c84703e0753f3e111e37626e6e069ea83.png)

Navigate to chain state page:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/5/5586b0177f7f070898fd7fdf124ec96be6d259eb.png)

Select ‘`system`’ as selected state query and the account you want to query (the one you just sent ROCs to!), then click the Plus (+) button on the right hand side.

Notice tha providers = 1. This means you were successful.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/0/0c4e15137ee005f88620949e289a59d97f48fb24.png)

If you see the following, providers = 0, go back and try again as something went wrong.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/d/db070e432f18ae7e0df2d5e2c836f801a741561f.png)

Assuming you successfully teleported your ROCs to AssetHub, you are now ready to send WETH over the Bridge!

* * *

**Step 7: Checking the required fee to send WETH over the Bridge:**

- Go to the Gateway Contract Address: [0x5b4909ce6ca82d2ce23bd46738953c7959e710cd](https://sepolia.etherscan.io/address/0x5b4909ce6ca82d2ce23bd46738953c7959e710cd)
- You want to read as proxy ([shortcut](https://sepolia.etherscan.io/address/0x5b4909ce6ca82d2ce23bd46738953c7959e710cd#readProxyContract))
  - Navigate to the Contract tab, click **Read as Proxy**.
  - Scroll down to **quoteSendTokenFee** input desired parameters.

**UX:**

1. You should see the **quoteSendTokenFee** screen below.  
**Parameters:**  
a) **token (address)** `0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14`  
_(i.e. WETH contract address)_  
b) **destinationChain (uint32)**: `1000`  
_(i.e. AssetHub’s ParaID)_  
c) **destinationFee (uint128)**: `0`  
_(i.e. destinationFee is always 0 for transfers to Asset Hub.)_

**Click Query** and uint256 : `500000000000` should be returned.  
i.e. the fee unit Wei.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/a/af9323d32a0032321c392ac1ade1c931a232e840.png)

Congrats, youre ready to send WETH to AssetHub!

* * *

**Step 8: Send WETH to Polkadot**

- Navigate to Gateway Contract Address: [0x5b4909ce6ca82d2ce23bd46738953c7959e710cd](https://sepolia.etherscan.io/address/0x5b4909ce6ca82d2ce23bd46738953c7959e710cd)
- Go to the write as proxy tab ([shortcut](https://sepolia.etherscan.io/address/0x5b4909ce6ca82d2ce23bd46738953c7959e710cd#writeProxyContract))
- Open **SendToken** dropdown
- Enter parameters

UX:

1. You should see the expanded **SendToken** dropdown on **Contract**  **Write as Proxy** screen below.  
**Parameters:**  
a) **Send token:** `0.0000005`  
_(i.e. the bridge fee)_  
b)**token (address)** `0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14`  
_(i.e. WETH contract address)_  
c) **destinationChain (uint32):** `1000`  
_(i.e. AssetHub’s ParaID)_  
d) **kind:** `1`  
_(i.e. the type of address the destination chain accepts, AssetHub accepts kind `AddressId32 (value = 1)`.)_  
e) **data:** [your Polkadot address in HEX format]  
Either use subkey command `subkey inspect [address]` ([installation guide](https://docs.substrate.io/reference/command-line-tools/subkey/)) or convert your polakdot address to HEX format here: [Substrate JS Utilities](https://www.shawntabrizi.com/substrate-js-utilities/)  
e.g. `5DSgBJUyMoKeSHABxTsAdmSopCe8Xx1GxhKyjfb5d66ozrTe` (converts to) `0x3cfdfb31dfaf49d37a4af0b44c36cefcbef5c66d6a478766697d2f88674e826a`  

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/8/85b871b7fff3a397722fbc1d34d2412d38c073ed.png)

Click **Write** & Confirm Transaction in Metamask

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/8/85b871b7fff3a397722fbc1d34d2412d38c073ed.png)

You can then see your transaction on Etherscan, but you will need to wait ~25-30 min for your WETH to be relayed to AssetHub.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/9/930245ce1d3e5af7efeb45dbe20bea8ca4fdb9ed.png)

* * *

**Step 9: Check you received your WETH:**

- Go to the [chainstate](https://cloudflare-ipfs.com/ipns/dotapps.io/?rpc=wss%3A%2F%2Frococo-asset-hub-rpc.polkadot.io#/chainstate) on dotapps
- Select ‘foreign assets’  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/8/879a3cc48d469a7a684884277690e2bdb62479a5.png)  
  
**UX:**  
**Parameters:**
  - **parents: u8:** `2`
  - **interior: XcmV3Junctions:** `GlobalConsensus`
  - **XcmV3Junction:** `Ethereum`
  - **chainId:** Compact: `11155111`  
_(i.e. Sepolia)_
  - **XcmV3Junction:** `AccounKey20`
  - **key: [u8;20]:** `0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14`  
_(i.e. WETH contract address)_

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/9/99488c7a54cccf2a3d41f61ea2b1d7e4243e4870.png)

**Click Plus (+) button** on top right corner, and you shoud see the following:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/polkadot2/original/2X/1/1d12f129b90d842abe6e21556b87e49e83aad658.png)

If you see a balance, the same as above, you have successfully depostied WETH on AssetHub!

---

<div class="post-metadata">

**Author:** ![radha](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@radha](https://forum.polkadot.network/u/radha)\
**Post date:** [April 17, 2024, 9:36pm UTC](https://forum.polkadot.network/t/snowbridge-sepolia-rococo-walkthrough/7452/2 "2024-04-17T21:36:21Z")

</div>

Thanks for the resourceful post! Going forward, please consider adding such tutorials to the Polkadot Wiki [GitHub - w3f/polkadot-wiki: The source of truth for Polkadot.](https://github.com/w3f/polkadot-wiki) and then linking them to the Polkadot forum posts.

This would help avoid duplication of work and also ensures the docs are maintained/updated later on. cheers!

For now, we will add this tutorial to the [Bridge Hub Guides · Polkadot Wiki](https://wiki.polkadot.network/docs/learn-guides-bridges) page

---

<div class="post-metadata">

**Author:** ![\_rich](https://avatars.discourse-cdn.com/v4/letter/_/7bcc69/32.png) [@\_rich](https://forum.polkadot.network/u/_rich)\
**Post date:** [April 17, 2024, 10:16pm UTC](https://forum.polkadot.network/t/snowbridge-sepolia-rococo-walkthrough/7452/3 "2024-04-17T22:16:37Z")

</div>

Cheers Radha, will do
