Files
ethdo/docs/howto.md
2020-04-26 08:45:49 +01:00

1.7 KiB

How to achieve common tasks with ethdo

Find out what ethdo can do

To find a list of topics that ethdo can carry out with the ethdo help command.

If you want more detailed information about the commands in a topic, they can be seen with the ethdo help <topic> command, for example:

ethdo help wallet

List my wallets

The wallets you can currently access can be seen with the ethdo wallet list command.

Create a new wallet

New wallets can be created with the ethdo wallet create command. Each wallet has to have a unique name, for example:

ethdo wallet create --wallet="My wallet"

Additional options are available to decide the type of wallet and encryption.

Back up a wallet

A wallet can be backed up with the ethdo wallet export command. This creates an encrypted backup of the wallet, for example:

ethdo wallet export --wallet="My wallet" --exportpassphrase="export secret" >export.dat

Note that by default the wallet backup is printed to the console, hence the >export.dat to redirect it to a file.

Restore a wallet

A backed up wallet can be restored with the ethdo wallet import command, for example:

ethdo wallet import --importdata=export.dat --importpassphrase="export secret"

In this example the wallet to be imported is being read from the export.dat file.

Note that if a wallet with the same name already exists it cannot be imported.

Where is my wallet?

Details of the location of a wallet can be found with the ethdo wallet info command, for example:

ethdo wallet info --verbose --wallet="My wallet"

This will provide, amongst other information, a Location line giving the directory where the wallet information resides.