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
64 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 by Omkar
• 67,660 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
36 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,350 points
44 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 in Blockchain by Omkar
• 67,660 points
28 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 9 in Blockchain by Omkar
• 67,660 points
111 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,550 points
251 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
169 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 497 views
+1 vote
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
• 67,660 points
193 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
• 67,660 points
61 views