Parity-ethereum: Document CLI parity account import

Created on 14 May 2017  路  5Comments  路  Source: openethereum/parity-ethereum

There is no clear way of explaining how to import an account using CLI method
parity account import
What are the arguments? Json file? Password? Mnemonics phrase? Private keys?

I've tried to use:

 parity account import  UTC--2017-05-14T22-02-46Z--717e724c-5bec-e5bb-1eb9-ab92354084b2 --chain dev

Importing accounts failed.

F5-documentation 馃搼 M3-docs 馃搼

Most helpful comment

This command expects a keys directory as an input. Inside there should be a per-chain directory containing key files.

Perhaps it makes more sense to actually change the command to import key files directly:

$ parity account import <key-file>...

So that one could just do:

$ parity account import ./mykeys/* --chain kovan

All 5 comments

This command expects a keys directory as an input. Inside there should be a per-chain directory containing key files.

Perhaps it makes more sense to actually change the command to import key files directly:

$ parity account import <key-file>...

So that one could just do:

$ parity account import ./mykeys/* --chain kovan

Crossposted here: https://ethereum.stackexchange.com/questions/16164/how-to-import-an-account-in-parity-using-cli

@rstormsf are you trying to import an existing account?

Ok. Works as expected. It just needs a better documentation.
Here is how I got it working:

mv ~/.local/share/io.parity.ethereum/keys/DevelopmentChain ~/someFolder
cd ~/someFolder/DevelopmentChain
parity account import . --chain dev

Caveat: if you don't specify the chain, it will import to HOMESTEAD by default.

@tomusdrw @5chdn
Another point regarding import:
How would you import keys using CLI mode for private chain?
Private chains have different folder path, so how should I construct my CLI command in order to import it successfully into the right.
Here is how:

parity account import ./someFolder/keys/DemoPoA/. --chain demo-spec.json --keys-path node0/keys

Done!

Yes, the import command accepts chain and path parameters. Will add this to the wiki. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jacogr picture jacogr  路  4Comments

jordipainan picture jordipainan  路  3Comments

jurijbajzelj picture jurijbajzelj  路  3Comments

gaoxiangxyz picture gaoxiangxyz  路  3Comments

vmenond picture vmenond  路  3Comments