Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(p2p/foundry): change testnet to Sepolia #110

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions p2p/3.foundry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,25 @@ If it is the right number you should see the following output:

During the first steps you interacted with your local blockchain, but now we will use a public one 🚀
Some test networks are available for you to test your contracts, they are called [testnets](https://ethereum.org/en/developers/docs/networks/).
In this step we will interact with the [Goerli](https://goerli.net/) testnet.
We will use [Infura](https://infura.io/)'s nodes to interact with the blockchain. We could also have
In this step we will interact with the [Ethereum Sepolia Testnet](https://www.alchemy.com/overviews/sepolia-testnet).
We will use [Alchemy](https://dashboard.alchemy.com)'s nodes to interact with the blockchain. We could also have
run our own node, but it would take too much time.

### 📌 **Tasks**:

- Create a [metamask](https://metamask.io/) account and fund it with some Goerli ETH.
- You can use the [faucet](https://goerlifaucet.com/) to get some Goerli ETH.
- 📡 Download [Metamask](https://metamask.io) and create an account if you don't already have one. It is the most popular Ethereum wallet and allows you to interact with the Ethereum blockchain.
- Get your RPCURL on [Alchemy](https://dashboard.alchemy.com/apps).
- Sign in.
- Click on `Create new app` and enter the project name.
- Go to network, select `Ethereum`, change `mainnet` to `Sepolia`, and copy the URL.
- Add the Sepolia Testnet network to Metamask. [Here's](https://moralis.io/how-to-add-the-sepolia-network-to-metamask-full-guide/) a guide on how to do it.
- Go to the [Sepolia faucet](https://www.alchemy.com/faucets/ethereum-sepolia), enter your wallet address, and send yourself some ETH.
> ⚠️ You need some ETH on the mainnet to receive test tokens. If you don't have any, contact the workshop manager.

- Create an account on [Infura](https://infura.io/) and get an API key.
- You will use this API key to interact with the Goerli testnet.
> You can now broadcast transactions to the Sepolia testnet, by the endpoint `https://eth-sepolia.g.alchemy.com/v2/<API_KEY>`.

> You can now broadcast transactions to the Goerli testnet, by the endpoint `https://goerli.infura.io/v3/<YOUR_API_KEY>`.

- Now deploy and interact with your contract, like you did in the previous steps, but this time on the Goerli testnet.
> Don't forget to use your endpoint, shutdown your local blockchain to be sure you are using the Goerli testnet.
- Now deploy and interact with your contract, like you did in the previous steps, but this time on the Sepolia testnet.
> Don't forget to use your endpoint, shutdown your local blockchain to be sure you are using the Sepolia testnet.


### 📚 **Documentation**:
Expand Down
Loading