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, 2019 in Blockchain by Mihir
2,075 views

1 answer to this question.

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, 2019 by Omkar
• 69,220 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
797 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,400 points
654 views
–1 vote
1 answer

How to import an account in private ethereum network?

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

answered Jan 9, 2019 in Blockchain by Omkar
• 69,220 points
1,567 views
–1 vote
1 answer

How to change default account in private ethereum network?

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

answered Jan 10, 2019 in Blockchain by Omkar
• 69,220 points
1,866 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
• 26,740 points
2,002 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
1,922 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

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

Mar 6, 2019 in Blockchain by saeedi
• 120 points

edited Mar 6, 2019 by Omkar 2,475 views
+1 vote
2 answers

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
• 69,220 points
4,105 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, 2019 in Blockchain by Omkar
• 69,220 points
1,678 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP