You are on page 1of 1

****************Private Blockchain creation commands*****************

open terminal-1
1)geth --datadir mission init genesis.json
2)geth --datadir .\mission\ --nodiscover

open another terminal-2

3)geth attach \\.\pipe\geth.ipc


4)eth.accounts
5)personal.newAccount()
6)eth.accounts
7)miner.setEtherbase(eth.accounts[0])
8)miner.start(1)
9)eth.getBalance(eth.accounts[0])
10)miner.start(1)
11)eth.getBalance(eth.accounts[0])

You might also like