Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Introduction of Ethereum Testnests

  • Last Updated : 28 Aug, 2020

When we create a project or write a code on Ethereum Virtual Machine (EVM) and deploy it on Ethereum mainnet for demo or test, cost can be high in terms of both network usage increase and financial cost upheld due to payment of ‘Gas’ in form of Ether. Code once deployed to mainnet is a permanent part of blockchain and bugs are forever open for exploitation unless fixed.

This brings out a need for a simulation of actual Ethereum blockchain whose token may be valueless and code can be tested before it is deployed in original blockchain. This stimulated blockchain of Ethereum is called an Ethereum Testnet.

Core advantage of testnet hence is ability to deploy your code and check for vulnerabilities, errors, and complete testing phase without any financial burden on developer and extra transactions on the mainnet.

Connecting to a Testnet :
Ether tokens that can be transacted on mainnet private and public addresses can be sent to same address of testnet as well. Be extra careful not to send tokens of mainnet to testnet. Here are two popular ways to transact to Ethereum testnet –

  1. MetaMask :
    • In the top-left of MetaMask, you can select an Ethereum network.
    • Switch from the Main Ethereum Network to Gorli (or other testnet) and you should see your balances and transaction history update of that network.
    • Now, when you create a transaction using MetaMask, it will be transacted to network you have selected.




    Figure – Metamask


  2. MyEtherWallet :
    • MyEtherWallet and MyCrypto similarly allow you to select an alternate network.
    • Select your network in top right of screen.
    • After this all transactions and contract calls are conducted on network that you have chosen.




    Figure – My Ether Wallet


Acquiring Ether for Testnet :
Ether for testnet is mostly acquired through faucets of that particular testnet. In some cases, only developers have right to share Ether tokens.

Below is a comparison of some of most popular testnests available –

1. Ropsten :

  • Proof of Work
  • Not immune to spam attacks
  • Supported by geth and parity
  • Chain Id: 3
  • Network Id: 3
  • Block time: sub-30 seconds
  • Faucet: https://faucet.ropsten.be/

2. Kovan :

  • Proof of Authority
  • Immune to spam attacks
  • Supported by geth and parity
  • Chain Id: 42
  • Network Id: 42
  • Block time: 4 seconds
  • Faucet: https://faucet.kovan.network/

3. Rinkeby :

  • Proof of Authority
  • Immune to spam attacks
  • Supported by geth and parity
  • Chain Id: 4
  • Network Id: 4
  • Block time: 15 seconds
  • Faucet: https://faucet.rinkeby.io/

4. Sokol :

  • Proof of Authority
  • Immune to spam attacks
  • Supported by geth and parity
  • Chain Id: 77
  • Network Id: 77
  • Block time: 5 seconds
  • Faucet: https://faucet.poa.network/

5. Görli :

  • Proof of Authority
  • Immune to spam attacks
  • Supported by multiple clients like Geth, Pantheon, Nethermind, and Parity
  • Chain Id: 5
  • Network Id: 5
  • Block time: 15 seconds on average
  • Faucet: https://faucet.goerli.mudit.blog/(Need to request the developers)

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!