Wallet

The wallets handler allows you to manage your locally stored wallet keys

Available Commands

Command
Description

Adds a new wallet

Lists all added wallets

Removes a wallet by address

Sets the default wallet to use

Wallet Add

Creates and adds a new wallet to the list of wallets.

Usage

wallet add <name>

Example

wallet add test

The above command will prompt you to enter a passphrase for your account and then generate an output similar to:

Wallet added!

Your seed phrase is:
"Your seed phrase will be displayed here" 

Do not share this with anyone. Please make sure to store this for future reference, without it you cannot recover your wallet.

You have created a new wallet address. To view the address we would need to list our wallets.

Recover an existing key from seed phrase

If you forget your password or lose your key, or you would like to use your key in another place, you can recover your key by using the --recover flag.

The following example will recover a key with the seed phrase and store it in the local keystore with the name test:

You'll be asked to enter and repeat the new password for your key, and enter the seed phrase. Then you get your key back.

Flags

Flag
Description
Usage

recover

Recovers a wallet by mnemonic.

--recover

help

Displays info about the current command.

--help

Wallet List

Lists all the added wallets.

Usage

We get:

Add another wallet and try again:

Result:

Wallets rm

Remove a specified wallet from the list.

Usage

or just:

which will prompt you to chose which wallet you want to remove.

Example

You will be promted to confirm this:

test2 wallet has been deleted:

Wallet Use

Set the default wallet to be used.

Usage

Example

Was this helpful?