How To: Create Your Own Private Ethereum Blockchain
Why we use Private Ethereum Blockchain
Ethereum software enables a user to set up a “private” or “testnet” Ethereum chain that is separate from the main Ethereum chain. This is useful for testing distributed apps built on Ethereum without having to expose your apps or trials to the real Ethereum network using real Ether.
Prerequisites
Mac
You need to have Geth installed. The easiest way to do this is through homebrew.
- Open Terminal and install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Now install geth
brew tap ethereum/ethereum
brew install ethereum
Windows
- Download Geth and install
Step :
- create a folder
- create custom genesis file
- create custom data directory
- set custom networkID (ChainID)
Create Genesis File
The Genesis block is the start block of the Blockchain — the first block, block 0, and the only block that does not point to a predecessor block. the genesis block is hard…