A few months ago I mined some Ethereum. I do not have the .json file anymore. But I do have the address and the password. Currently I'm running Geth (for the past 12 hours) but I'm not able to put in any commands. For some reason it keeps syncing.

  • How can I write commands in Geth?
  • How can I add an existing wallet with address and password?

3 Answers 3


You won't be able to access your account without the private key which is not the same as the password.

Your private key is stored in the keystore directory within the Ethereum data directory (per default ~/.ethereum on Linux). It should look something like this:


i.e., a UTC time stamp followed by your public address. This file contains your private key, encrypted with your password.

See https://github.com/ethereum/go-ethereum/wiki/Managing-your-accounts for more information on keystores and how to import private keys.


Regarding commands - run your Geth instance using:

geth [options] console 2>>geth.log

or you can start two instances:

geth [options]
geth [options] attach

when the second one allows you to enter commands.


To add an existing private key: Save it in an plain text file, with only the key in the 1st line followed by a newline, then:

geth account import <keyfile>

Imports an unencrypted private key from < keyfile> and creates a new account and prints the address.

From: https://github.com/ethereum/go-ethereum/wiki/Managing-your-accounts#creating-an-account-by-importing-a-private-key

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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