Anand Kumar Sinha
1 min readJul 28, 2019

--

It is probably an issue with your web3 version. I guess you installed web3 v1.0. As of web3.js v1.0, you have to go through eth in order to reach personal from nodejs.

NOTE : You may not find many tutorials to start with web3 version 1.0 since it is not that stable, yet.

Go to migrations folder and edit1_initial_migration.jsfile by replacing web3.personal.unlockAccount(web3.eth.accounts[0], "passphrase"); with following line:-

web3.eth.personal.unlockAccount(web3.eth.accounts[0], “passphrase”);

This should help, else I would recommend using version web3@0.x

PS: I am using web3@0.20.7

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Anand Kumar Sinha
Anand Kumar Sinha

No responses yet

Write a response