Private ethereum network account balance is zero

0 votes

Can you help me to find out why private ethereum network genesis block account balance is zero?

genesis.json
{
"nonce": "0x0000000000000042",
"difficulty": "0x40",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x4000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"alloc": {"0x94e3eec65d9e00ebef97d55ee511865b098616a7":{"balance":"10000000000"}},
"gasLimit": "0xffffffffffffff",
"config": {"chainId":13}
}
Jan 28 in Blockchain by Mihir
31 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

There are two reasons due to which ethers might not be added to your account.

  • You might have not created an account
  • You might not have specified the correct address

To successfully add ether to an account, you have to create an account first. You can use this command:

$ geth --datadir ./datadir account new

After running it, you will be displayed the account address. You this address in the genesis file and start the blockchain. It should work.

Creating account - Ethereum Private Network tutorial- EdurekaTo know more, refer this blog: https://www.edureka.co/blog/ethereum-private-network-tutorial

answered Jan 28 by Omkar
• 65,820 points
I had created a new account but didn't note down the address. How to add ether to that account without knowing the address?

Hey Mihir. You can add ethers without knowing the account address. But you can find the account address. To list the accounts, run the following command:

$ geth account list

This will list all the accounts and now you can use the address from the list.

Related Questions In Blockchain

0 votes
1 answer

Is it possible to setup private ethereum network for creating applications??

yes, ethereum is an open source platform ...READ MORE

answered Apr 18, 2018 in Blockchain by Christine
• 15,790 points
20 views
0 votes
1 answer

Why is it downloading the blocks when I am trying to deploy the ethereum private network?

Once you have installed the Ethereum wallet, ...READ MORE

answered May 3, 2018 in Blockchain by Shashank
• 10,330 points
13 views
0 votes
1 answer

How to import an account in private ethereum network?

 When you create a new account, the ...READ MORE

answered Jan 9 in Blockchain by Omkar
• 65,820 points
11 views
0 votes
1 answer

How to change default account in private ethereum network?

First list the accounts: > eth.accounts NOTE: Even ...READ MORE

answered Jan 9 in Blockchain by Omkar
• 65,820 points
24 views
0 votes
1 answer

How to create a Genesis Block in a Private Network?

{     "nonce": "0x0000000000000042",     "difficulty": "0x000000100",     "alloc": {     },     "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",     "coinbase": "0x0000000000000000000000000000000000000000",     "timestamp": "0x00",     "parentHash": ...READ MORE

answered Jul 12, 2018 in Blockchain by digger
• 27,620 points
60 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
61 views
0 votes
1 answer
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 106 views
0 votes
1 answer

Not able to create new account in geth for private ethereum network

Looks like the account you are trying ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 65,820 points
34 views
0 votes
1 answer

How to get account with ethers by default in ethereum private network?

Have you created an account before allocating ...READ MORE

answered Jan 9 in Blockchain by Omkar
• 65,820 points
20 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.