Skip to content

Commit

Permalink
Merge pull request #110 from PoCInnovation/p2p/change-testnet
Browse files Browse the repository at this point in the history
fix(p2p/foundry): change testnet to Sepolia
  • Loading branch information
Intermarch3 authored Oct 29, 2024
2 parents 5a49620 + 8095dcc commit 756690f
Showing 1 changed file with 13 additions and 10 deletions.
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

0 comments on commit 756690f

Please sign in to comment.