0

I'm trying to unlock an ethereum user account using geth, but am getting an error message that doesn't make sense to me.

Here's what I do:

1) I start the geth console connected to the ropsten network:

geth --testnet console

2) Then I try to use the personal.unlockAccount method:

personal.unlockAccount('<account address>', '<key phrase>', 1000);

Then I get the error:

Error: no key for given address or file

I'm not sure why I might be getting this message or what it means exactly. Can anyone help?

  • Do you have your keystore file in the keystore folder? Do you have something returned when you run eth.accounts ? – Florian Castelain May 7 '18 at 22:20
  • It does appear to be. Is there a way to confirm that what I think is the keystore dir actually is? – fraxture May 7 '18 at 22:49
  • When you launch geth, you have some information displayed. One of them is the path of the files. It chould be something like wherever_you_installed_geth/geth/keystore – Florian Castelain May 8 '18 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.