Nning Ethereum

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

2.

Running Ethereum
1. Create Directory Structure
$ mkdir -p /home/fintech/Ethereum/privateNetwork/node1
$ mkdir -p /home/fintech/Ethereum/privateNetwork/node2

2. Create CustomGenesis.json file with any editor (You can generate Genesis block also using
puppeth )
{
"config": {
"chainId": 1907,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"difficulty": "40",
"gasLimit": "2100000",
"alloc": {}
}

3. Initializing genesis block for node1

$ geth --datadir "/home/fintech/Ethereum/privateNetwork/node1" init


/home/fintech/Ethereum/privateNetwork/node1/CustomGenesis.json

4. Connecting to Ethereum network

$ geth --datadir /home/fintech/Ethereum/privateNetwork/node1 --networkid 98765

open new terminal and type this command

$ geth --datadir /home/fintech/Ethereum/privateNetwork/node1 --networkid 98765 attach

You might also like