I am trying to withdraw some coins from my wallet (as I have done several times prior) but this time I am prompted with the error:

 {0x0000000000000000000000000000000000000000", value: web3.toWei(1, "ether")})
  code: -32000,
  message: "account is locked"

I've tried unlocking the account using the --unlock command

geth --unlock "0x0000000000000000000000000000000000000000"

but unfortunately it did not fix the issue.

  • 1
    What was the actual error of geth --unlock ?
    – niksmac
    Mar 18, 2016 at 2:51
  • Okay, so I never could unlock my account within GETH or Console and truthfully sent me into a small panic mode (and that's no where anyone wants to be). Thankfully coping my keystore file to my Windows PC, UI Wallet, I was able to move my coins. No more worries thank God but very strange and I would curious to know how this happened.
    – user1116
    Mar 18, 2016 at 14:52

1 Answer 1


You have to send the index of the account address on eth.accounts to unlock it and the path to the password file:


geth --unlock=0 --password="./password-file-path"

This will unlock the first address on eth.accounts and use the content on the file as password.

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.