I have a private blockchain with two accounts in my genesis.json file and tried to unlock both. I tried multiple methods and all failed. I tried

geth --networkid 42 --datadir "~/data/privateEthereum/client" --nodiscover --rpc --rpcport "8042" --port "30303" --ipcpath "~/Library/Ethereum/geth.ipc" --maxpeers 3 --nat=any --rpccorsdomain "*" --unlock "0 1" --password "password0.txt password1.txt"


1 Answer 1


At first, you should create a password.txt file of one per line ,and then run this command:

geth --datadir=~/data/privateEthereum/client --unlock "0,1" --password "password.txt" console

For the Ethereum account, there is more infomation here Managing your accounts

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.