4

In native geth applicaton, I was able to unlock accounts with only account address and its passphrase.

How to open the JavaScript console on Parity? guide us to open a console for communicate with Parity.

When I use JavaScript console on Parity, I was not able to do the same. Please see following JavaScript console on Parity: unable to unlock account. Error: Method not found.

I have told that:

You can't unlock an account without private key.

Based on that; using JavaScript console on Parity: How could I import account's private key(which was created using geth), which I would like to unlock?

alper
  • 8,395
  • 11
  • 63
  • 152
  • Why do you want to do it via console? Try parity account import <file>. – q9f May 10 '17 at 07:28
  • I keep facing with following error: Importing accounts failed. I tried to import file that is stored under keystore that is created by geth. @5chdn – alper May 10 '17 at 07:56
  • I import the account from parity gui, but when I try to unlock in on the javascript console, personal does not unlock in. @5chdn – alper May 10 '17 at 09:48
  • Is it visible when you type eth.accounts ? – q9f May 10 '17 at 09:49
  • Yes sir. it returns the account which I imported via parity's browser. @5chdn♦ – alper May 10 '17 at 10:01
  • I'm running out of ideas. – q9f May 10 '17 at 11:25
  • Does it work on your java console? @5chdn – alper May 10 '17 at 13:06
  • With following parameters the account is able to unlock: --unlock "0x75a4c787c5c18c587b284a904165ff06a269b49d" --password password.txt but I can't do it on the console, I am not sure what is wrong. @5chdn – alper May 11 '17 at 20:29
  • I can't even create a new account: > personal.newAccount("avatar") Error: Method not found @5chdn – alper May 11 '17 at 20:59
  • Are you using geth attach or the built-in parity console dapp? If the latter is the case, you need to additionally enable the --dapps-apis too. Note this feature will be merged with --jsonrpc-apis in 1.7. – q9f May 15 '17 at 08:46
  • geth attach: geth attach /Users/alper/Library/Application\ Support/io.parity.ethereum/jsonrpc.ipc console @5chdn – alper May 15 '17 at 16:15
  • 1
    We are running in circles. Your answer is this. You don't need to import your account if it's already visible by eth.accounts. Wrong password? – q9f May 16 '17 at 08:00

1 Answers1

1

To import an account from geth, type on your terminal:

parity wallet import ~/.ethereum/keystore/UTC--2015-10-15T18-13-54.xxxxxx --password ~/path/to/password.txt
q9f
  • 32,913
  • 47
  • 156
  • 395