when I use "geth --dev",I find it already exist a account.But I don't know the password.How can I unlock this account.

1 Answer 1


The account has a blank password.

$ geth --dev console
> personal.unlockAccount(eth.accounts[0], "");

You can unlock from the command line using a --password password.txt where the file has no contents.

The following commands I executed shows that the eth.accounts[0] is unlocked:

$ touch password.txt
$ geth --dev --password password.txt console
> eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[0], value: web3.toWei(1, "ether")});

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.