5.1 KiB
In this tutorial you will learn how to:
- Create a Sepolia Ethereum account and obtain its private key.
- Obtain Sepolia ETH from faucet.
- Access a node on the Sepolia testnet using Infura.
1. Create a Sepolia Ethereum account and obtain its private key
WARNING: The private key is used elsewhere by Waku RLN registration tools to assist with membership registration in the Sepolia test network. We strongly recommend that you create an account only for this purpose. NEVER expose a private key that controls any valuable assets or funds.
-
Download and install Metamask. https://metamask.io/download/ If you already have Metamask installed, go to step 3. If you encounter any issues during the Metamask setup process, please refer to the official Metamask support page.
-
Create a new wallet and save your secret recovery phrase.
-
Login to Metamask.
-
By default, Metamask connects to the Ethereum Mainnet (dropdown menu in the top right corner).
To publish messages to the Waku Network, you need to connect to the Sepolia test network.
-
Switch to the Sepolia test network by selecting it from the dropdown menu. Ensure "Show test networks" is enabled.
The same account can be used with different networks. Note that the ETH balance is different for each network (each has its own native token).
-
To view the private key for this account, click on the three dots next to the account name and select "Account Details".
Select "Show Private Key".
Enter your Metamask password and click "Confirm"
You will be shown the private key.
2. Obtain Sepolia ETH from faucet
Sepolia ETH can be obtained from different faucets. Three popular examples include:
- sepoliafaucet.com (requires an Alchemy account)
- Infura Sepolia faucet (requires an Infura account)
- Sepolia POW faucet
NOTE: This list is provided for convenience. We do not necessarily recommend or guarantee the security of any of these options.
Many faucets limit the amount of Sepolia ETH you can obtain per day. We include instructions for sepolia-faucet.pk910.de as an example:
-
Enter your Sepolia Ethereum account public address, solve the Captcha and start mining.
-
Keep the browser tab open for a while. You can see the estimated Sepolia ETH mined per hour.
Each session is limited to a few hours.
-
When you've mined enough Sepolia ETH (minimum of 0.05 Sepolia ETH), click on "Stop Mining" and claim your reward.
3. Access a node on the Sepolia testnet using Infura
NOTE: Infura provides a simple 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 should use their own node.
-
Sign up for Infura if you do not have an account already. https://infura.io/register
Follow the instructions to register and verify the account.
-
Click on "Create a new API key".
-
Select "Web 3 API", give your API key a descriptive name and click on "Create".
You will be presented with a dashboard for the newly created key.
-
Select "Sepolia" in the dropdown menu for Ethereum.
Both Https and WebSockets endpoints are available. Waku requires the WebSockets endpoint.
-
Copy this address (starting with
wss://sepolia.infura
) as needed when setting up your Waku node.