-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prerequistes for RLN integration tutorial (#1031)
* Prerequistes for RLN integration tutorial * Update docs/tutorial/Pre-requisites of running a Waku node.md Co-authored-by: Sanaz Taheri Boshrooyeh <[email protected]> * Update docs/tutorial/Pre-requisites of running a Waku node.md Co-authored-by: Sanaz Taheri Boshrooyeh <[email protected]> * Skip section if existing gorli acc * Faucet warning * Wss endpoint note * More image truncation * Goerli testnet selection note * Update docs/tutorial/Pre-requisites of running a Waku node.md Co-authored-by: Daniel Kaiser <[email protected]> * Censor Infura Endpoint * Period added after all statements * Explanantion Summaries * Update docs/tutorial/Pre-requisites of running a Waku node.md Co-authored-by: Sanaz Taheri Boshrooyeh <[email protected]> * Update docs/tutorial/Pre-requisites of running a Waku node.md Co-authored-by: Sanaz Taheri Boshrooyeh <[email protected]> * Update docs/tutorial/Pre-requisites of running a Waku node.md Co-authored-by: Sanaz Taheri Boshrooyeh <[email protected]> Co-authored-by: Sanaz Taheri Boshrooyeh <[email protected]> Co-authored-by: Daniel Kaiser <[email protected]>
- Loading branch information
1 parent
a40686e
commit 2ca27ea
Showing
1 changed file
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
In this tutotial you will learn how to: | ||
1. Create Goerli Ethereum Account and obtain its private key. | ||
2. Obtain Goerli Ethers from faucet. | ||
3. Set up a hosted node on Goerli Testnet using Infura. | ||
|
||
If you already have an Ethereum account with sufficient ethers on the Goerli testnet then you can skip the first two sections. | ||
## Creating Goerli Ethereum Account and obtaining its private key | ||
|
||
|
||
1. Download and install Metamask. [https://metamask.io/download/](https://metamask.io/download/) | ||
2. Create a new wallet and save your secret recovery key. | ||
|
||
![](https://i.imgur.com/HEOI0kp.jpg) | ||
|
||
3. Login to Metamask. | ||
|
||
![](https://i.imgur.com/zFduIV8.jpg) | ||
|
||
4. You should already see an account created. As you can see on top right, it should be pointing to Ethereum mainnet. | ||
|
||
![](https://i.imgur.com/gk3TWUd.jpg) | ||
|
||
5. You can use the same account for different networks. For Waku we need to connect to the Goerli test network. | ||
6. You can switch to a test network by clicking on the drop down menu. Select Goerli test network for Waku: | ||
|
||
![](https://i.imgur.com/kbuup6y.jpg) | ||
|
||
7. Click on Show/hide test networks. | ||
8. Enable “Show Test Networks". | ||
|
||
![](https://i.imgur.com/02x7iSX.jpg) | ||
|
||
![](https://i.imgur.com/UFsoRHR.jpg) | ||
|
||
9. Close the settings and now you should see the test networks in the drop down on the top right. | ||
|
||
![](https://i.imgur.com/leSYt4z.jpg) | ||
|
||
10. Switch to Goerli Test Network. | ||
11. You can see that the same account can be used with different networks. But note that the ETH balance on different networks are different and are different tokens. | ||
|
||
![](https://i.imgur.com/Y7YkuEe.jpg) | ||
|
||
12. Now to export your private key for the account, if needed, please click on the three dots beside the account. | ||
|
||
![](https://i.imgur.com/9BlBmhT.jpg) | ||
|
||
13. Click on Account Details. | ||
14. Click on Export Private Key. | ||
|
||
![](https://i.imgur.com/7g6SyuX.jpg) | ||
|
||
15. Enter your Metamask password when prompted. | ||
|
||
![](https://i.imgur.com/VOojHY5.jpg) | ||
|
||
16. You will be shown the private key. Copy it as needed. | ||
|
||
Obtain Goerli Ethers from faucet | ||
--- | ||
|
||
1. Ethers on Goerli test networks can be obtained from different faucets. | ||
2. Some of the faucets are as follows: | ||
1. [https://goerlifaucet.com/](https://goerlifaucet.com/) | ||
2. [https://goerli-faucet.slock.it/](https://goerli-faucet.slock.it/) | ||
3. [https://goerli-faucet.pk910.de/](https://goerli-faucet.pk910.de/) | ||
(NOTE: We have not tested the security of these faucets so please feel free to do your own research or obtain Gorli ethers from other faucets if needed.) | ||
3. Please follow the instructions on the webpages of these faucets. | ||
4. A lot of faucets limit the Goerli ETH to 0.05 ETH/day. | ||
5. To obtain more eth, you can do some POW mining. One of those POW faucet is: | ||
[https://goerli-faucet.pk910.de/](https://goerli-faucet.pk910.de/) | ||
6. Enter your Eth account address, accept Captcha and start mining. | ||
|
||
![](https://i.imgur.com/IvHNsei.jpg) | ||
|
||
7. You can see the estimated Goerli ETH mined per hour. Each session is restricted to a few hours. | ||
|
||
![](https://i.imgur.com/qTWwyNr.jpg) | ||
|
||
8. When you exceed the hour limit of the session, then the mining will be stopped. | ||
9. Alternatively, stop the mining when mined enough goerli ether. | ||
10. Do not forget to claim your goerli ether. | ||
|
||
![](https://i.imgur.com/cGCSexB.jpg) | ||
|
||
|
||
Setting up a hosted node on Goerli Testnet using Infura | ||
--- | ||
|
||
(Note: Infura provides a simple straight-forward way of setting up endpoints for interaction with the Ethereum chain and the Waku RLN smart contract without having to run a dedicated Ethereum node. Setting up infura is not mandatory. Operators concerned with the centralized aspect introduced by infura can setup their own node.) | ||
|
||
1. Sign up to infura if you do not have an account already. [https://infura.io/register](https://infura.io/register) | ||
|
||
![](https://i.imgur.com/SyLaG6s.jpg) | ||
|
||
2. After registering and verifying the account, create a new project using Ethereum and give it a name. | ||
|
||
![](https://i.imgur.com/fJbNqwd.jpg) | ||
|
||
3. After creating the project, you will be presented with a dashboard like follows. Note that your Project Id and secret will be different. | ||
|
||
![](https://i.imgur.com/PfGmq4i.jpg) | ||
|
||
ß4. Select Gorli network in Endpoints. | ||
|
||
![](https://i.imgur.com/RgmH7C1.png) | ||
|
||
5. You can find the endpoints for the hosted node using https and wss. The wss endpoint is the relevant one for connecting the waku node to the RLN contract on Goerli network. Like follows: | ||
|
||
![](https://i.imgur.com/xqbOcOH.png) | ||
|
||
6. You can change security settings or view usage options as required in the dashboard. | ||
7. Congratulations, you are now ready to use the Infura node. |