2

When i try to load genesis block using the following command: geth --datadir privchain init genesis.json, i get the following error,

Fatal: failed to write genesis block: invalid character '.' after object key:value pair

Here is my genesis file:

{
  "config": {
    "chainId": 15,
    "homesteadBlock": 0,
    "eip155Block": 0,
    "eip158Block": 0
  },
  "difficulty": "200000000",
  "gasLimit": "2100000",
  "alloc": {
    "af8bd873406715dc1444077bb9d65c8800f7acdf": {
      "balance": "400000"
    }
  }
}

I am using this genesis file from this link: https://github.com/ethereum/go-ethereum/wiki/Private-network can someone help me out here please? Thank you

  • Probably you should add 0x as a prefix to your address given in alloc – Aniket May 16 '17 at 6:55
  • no, it didnt help . Thank you though – Yubi Khadka May 16 '17 at 11:05
  • Are you trying to run a private network? There are some alternatives. – Aniket May 16 '17 at 11:49
  • Yes, I am trying to run a private ethereum network . can you tell me some alternatives? – Yubi Khadka May 16 '17 at 11:51
  • follow this : ethereum.stackexchange.com/questions/13547/… – Aniket May 16 '17 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.