Wallet
The wallets handler allows you to manage your locally stored wallet keys
Available Commands
Save the wallet password.
Generate a new wallet
Import an existing wallet to the CLI.
Reassign the name of a wallet.
Reveal the mnemonic for a wallet.
Lists all added wallets
Migrate wallets from old CLI (V1)
Removes a wallet by address
Sets the default wallet to use
Autosave
Store the wallet password in keychain, no longer requiring a password when switching to the wallet.
Autosave is enabled by default.
Usage
wallet autosaveThen select the wallet:

Then you can choose to enable or disable this feature:

When disabled, then you will be required to enter your password every time you switch back to this wallet.
Generate
Creates and adds a new wallet to the list of wallets.
Usage
wallet generate <name>You cannot have two wallets with the same name including wallets on different chains.
Example
wallet generate testThe 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.Note: The output of the above command contains a seed phrase. It's recommended to save the seed phrase in a safe place to avoid losing it.
Use the specific chain faucet to send tokens to the address for testnet wallets..
You have created a new wallet address. To view the address we would need to list our wallets.
Recover
Import an existing wallet using the mnemonic.
Usage
wallet recover <wallet-name>Example
? user@galileo-4> wallet recover testing-2You will be prompted to add a passphrase for the wallet. Finally input the mnemonic of the wallet being imported. You will now be connected to the imported wallet:
? testing-2@galileo-4> () Rename
Assign a new name to the connected wallet.
Usage
wallet rename Example
? new-name@galileo-4> wallet rename
? New Name for wallet: new-name-2
// The name has been changed
? new-name-2@galileo-4> () Reveal
Reveal the mnemonic key for one of your wallets.
You will always have to input your passphrase to be able to view the mnemonic.
Usage
wallet reveal <wallet-name>Example

List
Lists all the added wallets.
The asterisk will show you which address is currently being used
Usage
wallet list We get:
? main-star@elgafar-1> wallet list
* main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuasAdd another wallet and try again:
wallet generate test2wallet listResult:
* main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas
//new wallet created
test2 stars1frjemlcs0s7n23swxx43g5a20nzymqxpgpwwhtMigrate Legacy
Migrates a wallet from an older version of CLI.
This command might be removed in the future after migration by users have been successfully completed.
Migrating is from v1 to v2 of CLI. You can check the version of your CLI by running "version".
Usage
wallet migrate-legacyThen select the wallet to migrate to the new CLI version:

You will then need to provide the passphrase for the wallet. After that the wallet will be added to your list.
rm
Remove a specified wallet from the list.
Usage
wallet rm <wallet-name>or just:
wallet rm which will prompt you to chose which wallet you want to remove.
Example
? main-star@elgafar-1> wallet list
* main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas
test2 stars1frjemlcs0s7n23swxx43g5a20nzymqxpgpwwhtwallet rm test2 You will be promted to confirm this:
Are you sure you want to remove wallet test2? (Y/n) ytest2 wallet has been deleted:
? main-star@elgafar-1> wallet list
* main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuasUse
Set the default wallet to be used.
Usage
wallet use <wallet-name>Example
//list the wallets
? guide@elgafar-1> wallet list
main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
* guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas
//Chose to use another wallet
? guide@elgafar-1> wallet use main-star
//Check if the in use wallet has changed
? main-star@elgafar-1> wallet list
* main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuasLast updated
Was this helpful?