O'Reilly logo

Ethereum Smart Contract Development by Mayukh Mukhopadhyay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Smart contract on a private blockchain

Let us do some grown-up stuff now. Yes, we are still not going to spend any fiat money to buy ethers to code on a blockchain. Rather we will do the following:

  1. Write a genesis block file for a private blockchain.
  2. Create the private blockchain using geth commands.
  3. Link the private blockchain with the MIST browser.
  4. Mine the chain to generate our own ethers as rewards.
  5. Use those ethers to deploy a smart contract on our very own private blockchain.

The pre-requisite tools to be installed are as follows:

  • Windows 7 (64-bit) (Instructions are for Windows user, for Ubuntu/Mac refer appendix)
  • Cygwin setup-x86_64 (For Bash-Shell on Windows 7) (https://cygwin.com/install.html)
  • geth-windows-amd64-1.6.7-ab5646c5 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required