How to retrieve their private and public key.I created one ethereum address using command line personal.newAccount .When I am checking this address in etherscan it shows 0 balance but in my ethereum geth its shows have balance.Where I can see the my private ethereum blockchain detail with all transaction.I setup mist wallet also but its not working.Please Help.


closed as unclear what you're asking by goodvibration, alberto, shane, Richard Horrocks, Ismael Sep 23 at 15:41

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


Let me answer you one by one.

How to retrieve your public and private key?

Inside your geth directory, you will be able to see the keystore file. You can use this node module (https://www.npmjs.com/package/keythereum) to retrieve the private key using the password you used while creating the account.

When I am checking this address in etherscan it shows 0 balance but in my ethereum geth its shows have balance

I assume you have created your own private ethereum network and hence you wont be able to see the balance of the account in etherscan. Etherscan are either connected to the mainnet or testnet works (rinkeby,ropsten and kovan). I am not sure on which etherscan you have checked.

Same applies for mist as well but you can connect mist or metamask to the geth rpc address and view the balance of your account accordingly

  • Thanks for your response.Setup private ethereum network on mainnet. I checked etherscan with mainnet.I Installed ethereum wallet .Its open the ethereum wallet window in linux. But its not synchronise with my account and balance.It shows zero balance. – Nandni Sep 23 at 8:20
  • You cant setup private ethereum network on mainnet. Both are different. I assume you run your own private ethereum network. Can you post more details on how you are running ethereum ? – Noushad Mohamed Sep 23 at 14:59
  • I am executing this command when started geth with network id 1 and network id 1 stands for main net.Still my node is not synchronize with ethereum wallet in ethereum wallet it shows 0 balance. geth --datadir ethchain --networkid 1 --rpcport 8545 --rpcapi="db,eth,net,web3,personal,admin,txpool,debug" --rpc --maxpeers 0 --nodiscover --rpccorsdomain "" --rpcaddr "" --ipcpath "ethchain/geth.ipc" --syncmode fast console – Nandni Sep 24 at 3:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.