Review of Ethereum Developer Chain Options

decorative line

Learn about Ethereum blockchain development

Note

If you are new to the blockchain technology, taking our Introduction to Blockchain Technology self-paced course is highly recommended. Also, for a comprehensive coverage of blockchain development in Ethereum or mastering Solidity programming, taking our below self paced courses is highly recommended:

Recap

In our previous article (Review of Ethereum Options for Development and Testing), we discussed what Ethereum Options are for application development and testing.

In this article, we learn what Ethereum Chain Options are and how to use them.

 

Developer chain options

Developer chain options are the ones facing developers. There are two useful developer chain options:

  • --dev
  • --dev.period

 

By running --dev, a proof-of-authority network will be established. Notice that a prefunded account will be created and mining will be enabled automatically. The default block period will be 0, meaning mining is only enabled when the transaction is in a pending status. Sometimes, developers will save the trouble of creating their own local private chain from scratch by using the one developer mode provides. You can challenge yourself by setting up a private blockchain using the --dev flag. It will deepen your understanding of all the kinds of options supported by geth.
Let's quickly check the fund in the predefined account using the following steps:

  • You must be very familiar with the console by now. We will bring up the console with the following command:

 

$ geth -dev console
  • Then, we will double-check if this is the account we are interested in with the help of the following command:

 

    eth.accounts ["0xcbb8c6537505837c43cc54f1440bcf988111ad91"]
    
  • If we query interactively using the following command, we will find out the amount of ether

the 0xcbb8c6537505837c43cc54f1440bcf988111ad91 account is holding:

Private Custom Tutoring

decorative line

We offer private custom tutoring classes both online and in DC, MD and VA for almost all of our courses or bootcamps. Give us a call or email us to discuss your needs.

$90 Regular

$50 Limited Offer

REGISTER NOW