Goerli ➡️ Sepolia transition
What’s happening with Goerli?
After starting as a hackathon project at ETH-Berlin, Goerli eventually transformed into a popular proof-of-authority (PoA) based Ethereum testnet that allowed DApp developers to test their smart contracts thoroughly before deploying them on the Ethereum mainnet.
Goerli had its day in the limelight when it served as the last testnet to test out The Merge—the transition of the Ethereum mainnet towards a proof-of-stake (PoS) consensus mechanism.
With all that being said, it must be noted that Goerli was never meant to be the network for testing out your DApps/smart contracts. The network boasts of a permissionless validator set, which makes it ideal for validators and stakers to test out protocol upgrades and client-side updates.
Goerli is set to be sunset in Q4 2023, and we highly recommend our customers and DApp developers, in general, to consider migrating to Sepolia.
Goerli will be replaced by the Holešovice testnet, which will probably launch in the second half of 2023.
Named after a neighborhood in Athens, Sepolia launched in October 2021. Sepolia has a closed validator set and a relatively small state and history. This means that the network has a low gas fee, and is quick to sync a node. This makes Sepolia the ideal network to test out DApps and smart contracts.
Considering the Ethereum testnet cycle, Sepolia will be the go-to testnet for DApp developers for at least 3 more years. As usual, we will keep you updated with the latest developments in the space as and when they happen.
How to migrate from Goerli to Sepolia?
With Chainstack, your process of migration to Sepolia will be entirely seamless. Just follow the following steps to update your DApp testing environment.
Create a Sepolia endpoint with Chainstack
- Go to the Chainstack console.
- Navigate to your project, or create a new one.
- Click Join network.
- Click Ethereum and create an endpoint for Sepolia.
That’s it. You now have an HTTPS and a WSS endpoint in your Chainstack console that will allow you to connect to a fully synced Sepolia testnet node.
Get some Sepolia ether
To read and write data to the blockchain, you need two things:
- An RPC URL to connect to the network. You got that from your Chainstack console.
- You also need to have an EVM wallet address that holds some Sepolia ETH. You will need this address to sign transactions and spend gas to change the blockchain state.
- You can get a few Sepolia ETH to play around with from this faucet.
- Alternatively, you could tag us on Twitter and we will be happy to help you out with some ETH 🤑
Update the env variables
If you’re working on a project of any considerable size, you probably manage your sensitive credentials using an
env file or an online secret manager. If you are not sure about the best ways of storing sensitive information like RPC URLs or private keys, feel free to check out our guide on the proper ways of storing environment variables.
For now, just remember to carefully update your environment variables, especially the RPC URL and the private key.
Redeploy your smart contract
At this point, it is good practice to check if your smart contract logic depends on any global variables like
block.chainid. These values change from one network to another. You can check out Sepolia’s metadata on GitHub.
Once you have made sure that your smart contract is ready to go, just redeploy your smart contract on Sepolia.
Make sure your frontend is up-to-date
A DApp’s front end will usually have code that uses the env variables to interact with the blockchain or sign transactions. Make sure that your frontend code is up to date and that it refers back to the new
As Sepolia continues to become mainstream, more and more protocols will deploy their products on the testnet to make it convenient for developers to thoroughly test their DApps.
This table will be updated regularly to map common platforms and tokens from Goerli to Sepolia for developers looking to test on Sepolia:
|Chainlink||Chainlink smart contracts on Sepolia|
|LINK token faucet for Sepolia||LINK faucet on Sepolia|
|Aave V3||Aave V3 Sepolia deployment addresses|
|Aave V3 faucets||Aave V3 Sepolia faucets|
In a few simple steps, you have migrated your DApp to Sepolia, and with Chainstack, you can rest assured that you will have a functioning endpoint for as long as Sepolia is being used by the Ethereum community.
About the author
Updated 12 days ago