What are Ethereum Testnets?
{{goerli-faucet-ad}}
Introduction
As more funds and users are onboarded to Web3 and decentralized finance (DeFi) services, security and reliability are becoming increasingly important for developers. Testnets are used by developers to ensure that the smart contracts and dApps (Decentralized Applications) they deploy are functional and secure.
Developers can work with the same clients as they would on the mainnet but testnets operate on a separate ledger. This separation creates a low-risk environment where developers can test and experiment without the costs of deploying on the mainnet.
Let's look deeper into what are testnets, the benefits of using a testnet, and how developers can access them.
What are testnets?
Testnets are test blockchain networks that act and perform similarly to the main networks (mainnets) they are associated with. Since they operate on separate ledgers from the mainnet, the coins on a testnet have no connection to transactions and value on the mainnet. This allows developers to deploy, test, and execute their projects on a functioning blockchain freely.
The cost of failure or mistakes on a mainnet is very high and at times irreversible so developers need an environment where they can comfortably work without these risks.
Security is a high priority for developers working on any decentralized platform. Operating on a testnet also offers the benefit of both investigating any vulnerabilities in the platform as well as educating developers on how the platform works. For testnets that are for pre-network upgrades, it is important to investigate how newly developed changes function before they are merged with the mainnet.
Differences between mainnets and testnets
Most testnets have separate wallet systems to make it easier to manage coins and transactions outside of the mainnet. When deploying contracts and using services like Alchemy, testnets have distinct Network IDs .
For example, on the Ethereum network, the mainnet and testnets have the following IDs:
1 - Ethereum mainnet
3 - Ropsten testnet
4 - Rinkeby testnet
5 - Goerli testnet
42 - Kovan testnet
These IDs are used to ensure that the contract is deployed to the correct network and that the correct wallet system is used. Testnets do not experience the same amount of transaction frequency compared to their mainnets. Code is also not published publicly on testnets due to their changing nature compared to mainnets.
Ethereum testnets
Ropsten
The Ropsten testnet was launched in November 2016 and supports both Geth and Parity Ethereum node software. At the time of writing, it is the testnet that resembles the Ethereum network the most because it shares the same Proof-of-Work (PoW) consensus model.
This allows developers to use a highly authentic testnet to work on but also opens the network to attacks that would be very expensive to perform on the Ethereum mainnet. One of these happened in February 2017 when attackers deployed a high volume of complex transactions on the network to bring it down. The network was later brought back up and safeguards were put in place to prevent similar attacks.
Developers can view Ropsten transactions on Etherscan and can use faucets to add funds to a testnet wallet.
Kovan
After the attack on the Ropsten network, there was a need for alternative testnets. Kovan launched in March 2017 to fulfill this need. The main difference between Ropsten and Kovan is their consensus models.
Kovan uses a Proof-of-Authority (PoA) model in which only specific nodes are authorized to confirm transactions and add any new blocks. Since the Parity team created this testnet, developers can only access it using the Parity node software.
With Kovan,Developers can also view transactions on Etherscan and use faucets to add test coins.
Rinkeby
Following the launch of Kovan, the Rinkeby testnet was launched in 2017 by the Ethereum team. Like Kovan, this testnet uses a modified PoA consensus model to confirm transactions. Unlike Kovan, the network only supports the Geth software and not Parity.
To get testnet tokens for this network, you can use Alchemy's free Rinkeby Faucet and view transactions on Rinkeby Etherscan.
Here is a tutorial video on how to add funds to your wallet.

Goerli
Goerli is a testnet that combines both a PoA consensus mechanism with wider support of node software compared to Rinkeby and Kovan. Goerli supports both Geth and Parity as well as Nethermind and Hyperledger.
With this higher level of support, the popularity of Goerli has been increasing. It is also the first testnet that was attempted to be moved to the proof-of-stake mechanism before running into issues after multiple attempts.
Transactions can be viewed on Etherscan and Alchemy also offers a Goerli faucet.

Morden / Kiln - the past and the future
Morden was the very first Ethereum testnet. Ethereum shut it down in November 2016, because the network experienced several attacks and became highly congested with useless data that affected performance.
The Kiln testnet is the last planned testnet before other Ethererum testnets and mainnet move to a Proof-of-Stake consensus mechanism.
Ethereum created this testnet to allow any node operators and developers to test before the company upgraded their other public Ethereum testnets.
At the time of writing, there is no official date on when this upgrade will occur.
To start building on the Kiln testnet, get your Kiln ETH from Alchemy's free Kiln faucet.

Conclusion
Utilizing testnets is a critical step in developing applications on any blockchain network, and to ensure the growth of Web 3, developers and users need to feel confident in the smart contracts and applications they use.
Testnets are key blockchain developer tools for creating the security and stability that users will increasingly demand as the growth of Web 3 applications continues.
Want to start building decentralized applications on Ethereum testnets? Create a free Alchemy developer account to start building!