Parity-ethereum: web3.personal.unlockAccount call issue

Created on 20 May 2018  ·  1Comment  ·  Source: openethereum/parity-ethereum

I'm running:

  • Which Parity version?: 1.10.4
  • Which operating system?: Ubuntu 16.04
  • How installed?: via deb binaries
  • Are you fully synchronized?: yes
  • Which network are you connected to?: ropsten
  • Did you try to restart the node?: yes

I'm using web3 1.0.0-beta.34 to connect to parity node.
The parity node is started with:

parity --chain=ropsten --jsonrpc-apis "web3,eth,personal,parity_accounts"

and also using

parity --chain=ropsten

The account unlock using the below command is not successful

web3.personal.unlockAccount("0x00C...", "password", 1000);

The error below is generated:
TypeError: Cannot read property 'unlockAccount' of undefined

Please help to solve this issue . Thanks

F5-documentation 📑 P5-sometimesoon 🌲 Z1-question 🙋‍♀️

Most helpful comment

As of web3.js v1.0, you have to go through eth in order to reach personal from nodejs:

web3.eth.personal.unlockAccount("0x..", "<passs>", 1000);

>All comments

As of web3.js v1.0, you have to go through eth in order to reach personal from nodejs:

web3.eth.personal.unlockAccount("0x..", "<passs>", 1000);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mr-older picture mr-older  ·  3Comments

gaoxiangxyz picture gaoxiangxyz  ·  3Comments

stone212 picture stone212  ·  3Comments

retotrinkler picture retotrinkler  ·  3Comments

0x7CFE picture 0x7CFE  ·  3Comments