I am trying to create a Privatenet in custom folder...But initialising genesis.json file using below command:

geth –datadir =/home/kottackal/Documents/project1 init genesis.json

the geth.ipc file is generated in .ethereum folder instead of getting an output successfully wrote genesis state


"config": {
"chainId": 2340,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
"alloc": {
"0x0000000000000000000000000000000000000001": {"balance": 
"0x0000000000000000000000000000000000000002": {"balance": "222222222"}
"coinbase"   : "0x0000000000000000000000000000000000000001",
"difficulty" : "0x20000",
"extraData"  : "",
"gasLimit"   : "0x8880000",
"nonce"      : "0x0000000000000042",
"mixhash"    : 
"parentHash" : 
"timestamp"  : "0x00"

1 Answer 1


Got the answer...we have to specify the correct path of genesis.json...

geth –datadir =/home/kottackal/Documents/project1 init /home/kottackal/Documents/project1/genesis.json

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.