How to fix 'need genesis.json file as the only argument'?

294 views Asked by At

What does 'need genesis.json file as the only argument' mean?

I have faced the same problem recently, and this question above is the only mention of this problem in the Internet. Below a link to my JSON file. I have no idea how to fix this error.

C:\Windows\system32>geth --identity "MyBlockChain" init C:\MyNetwork\MyGenesis.json --datadir C:\MyNetwork\MyPrivateChain
Fatal: need genesis.json file as the only argument

screenshot of the above
my JSON

I have tried change the JSON in different ways but nothing had worked. I also tried relocating my files to another disk but it didn't work either.

1

There are 1 answers

0
Daria On

I finally fixed it by swapping init and --datadir parts