0

I was trying to import private key into geth node which i run locally. I am using javascript console

  1. When i tried the command web3.eth.personal.importRawKey("Private Key","Password") , i get an error TypeError: Cannot read property 'importRawKey' of undefined at :1:1(4)

  2. But then i tried personal.importRawKey("Private Key","Password") it worked fine.

Why in the first case i get an error?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.