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:

 

One-to-One Live Blockchain Classes

Coding Bootcamps school offers One-to-One Live Blockchain Classes for Beginners.

 

$ 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:

web3.fromWei(eth.getBalance(eth.coinbase),  "ether") 1.15792089237316195423570985008687907853269984665640564039457584007913129639927e+59

From the result, we know that the account has been funded with
1.1579208923731619542357098500868790785326998466564056403945758
4007913129639927e+59 ether.

 

Next Article

In our next article (Review of Ethereum API and Console Options), we discuss Ethereum API and its console options.

This article is written in collaboration with Brian Wu who is a leading author of “Learn Ethereum: Build your own decentralized applications with Ethereum and smart contracts” book. He has written 7 books on blockchain development.

Resources

Free Webinars on Blockchain

Here is the list of our free webinars that are highly recommended:

 

Free Courses

Here is the list of our 10 free self-paced courses that are highly recommended:

 

Self-Paced Blockchain Courses

If you like to learn more about Hyperledger Fabric, Hyperledger Sawtooth, Ethereum or Corda, taking the following self-paced classes is highly recommended:

  1. Intro to Blockchain Technology
  2. Blockchain Management in Hyperledger for System Admins
  3. Hyperledger Fabric for Developers
  4. Intro to Blockchain Cybersecurity
  5. Learn Solidity Programming by Examples
  6. Introduction to Ethereum Blockchain Development
  7. Learn Blockchain Dev with Corda R3
  8. Intro to Hyperledger Sawtooth for System Admins

 

Live Blockchain Courses

If you want to master Hyperledger Fabric, Ethereum or Corda, taking the following live classes is highly recommended:

 

Articles and Tutorials on Blockchain Technology

If you like to learn more about blockchain technology and how it works, reading the following articles is highly recommended:

 

Articles and Tutorials on Ethereum and Solidity

If you like to learn more about blockchain development in Ethereum with Solidity, reading the following articles and tutorials is highly recommended:

 

Articles and Tutorials on Hyperledger Family

If you like to learn more about blockchain development with Hyperledger, reading the following articles and tutorials is highly recommended:

 

Articles and Tutorials on R3 Corda

If you like to learn more about blockchain development on Corda , reading the following articles and tutorials is highly recommended:

 

Articles and Tutorials on Other Blockchain Platforms

If you like to learn more about blockchain development in other platforms, reading the following articles and tutorials is highly recommended: