Skip to Content
Ethereum Smart Contract Development
book

Ethereum Smart Contract Development

by Mayukh Mukhopadhyay
February 2018
Intermediate to advanced
288 pages
6h 58m
English
Packt Publishing
Content preview from Ethereum Smart Contract Development

Building a private blockchain

  1. In order to create a private blockchain, we first open the Cygwin command line and create a folder and files, using the following commands:
    $  mkdir Ethereum
    $  cd Ethereum
    $  mkdir Project
    $  cd Project
    $  mkdir chaindata
    $  vi genesis.json   ## this line opens the vim editor where we paste the content of genesis file
          ## we save the file content using command [Esc button press] wq
    $  ls -lha    ## this command list down the folder structure as shown in Figure 3.28  
Figure 3.28: genesis.json file always outside chaindata folder
  1. Now, in a separate Cygwin command window, we start geth, using the command $ geth. As in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Games with Ethereum Smart Contracts: Intermediate Projects for Solidity Developers

Building Games with Ethereum Smart Contracts: Intermediate Projects for Solidity Developers

Kedar Iyer, Chris Dannen

Publisher Resources

ISBN: 9781788473040Supplemental Content