Andromeda
ADO LibraryBuild AppsDevelop ADOsCLIWeb Application Docs
Andromeda Archives
Andromeda Archives
  • Platform and Framework
    • Introduction to AndromedaOS
    • ADO Classes
    • Andromeda Messaging Protocol
      • Kernel
      • ADO Database
      • Economics Engine
      • Virtual File System
    • ADO Base
      • AndromedaMsg V1.0.0
      • AndromedaQuery V1.0.0
    • Common Types
    • Deployed Contracts
  • Andromeda Digital Objects
    • Introduction to ADOs
    • Auction V1.0.0
    • App V1.0.1
    • Crowdfund V1.0.0
    • CW20 V1.0.0
    • CW20 Staking V1.0.0
    • CW721 V1.0.0
    • CW20 Exchange V1.0.0
    • Lockdrop V1.0.0
    • Marketplace V1.0.0
    • Merkle-Airdrop V1.0.0
    • Rate Limiting Withdrawals V1.0.0
    • Splitter V1.0.0
    • Timelock V1.0.0
  • Andromeda Apps
    • Introduction to Apps
    • Crowdfunding App
    • Auctioning App
    • Cw20 Staking App
    • Marketplace App
  • Developing an ADO
    • Getting Started
      • Instantiation
      • Execution
      • Queries
      • Testing
    • ADO Example
    • ADO Submissions
  • Andromeda CLI
    • Introduction
    • Help and Shortcuts
    • ADO
    • Bank
    • Chain
    • Env
    • Gql
    • Tx
    • OS
    • Wallet
    • Wasm
    • Clearing CLI Data
    • Clear and Exit
  • Chain
    • Running a Node
    • Staking and Rewards
  • Andromeda Dashboard
    • Tokenomics Dashboard
    • Dashboard API
  • Additional Resources
    • GitHub
    • Website
    • White Paper
Powered by GitBook

Additional Resources

  • Github
  • Website

Community

  • Discord
  • Telegram

Socials

  • Twitter
  • Medium
  • Youtube
On this page
  • Available Commands
  • Autosave
  • Generate
  • Recover
  • Rename
  • Reveal
  • List
  • Migrate Legacy
  • rm
  • Use

Was this helpful?

  1. Andromeda CLI

Wallet

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

PreviousOSNextWasm

Last updated 6 months ago

Was this helpful?

Available Commands

Command
Description

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 autosave

Then 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 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.

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-2

You 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 stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas

Add another wallet and try again:

wallet generate test2
wallet list

Result:

*  main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
   testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
   uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
   user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
   keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
   guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas
   //new wallet created
   test2 stars1frjemlcs0s7n23swxx43g5a20nzymqxpgpwwht

Migrate 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-legacy

Then 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 stars1frjemlcs0s7n23swxx43g5a20nzymqxpgpwwht
wallet rm test2 

You will be promted to confirm this:

Are you sure you want to remove wallet test2? (Y/n) y

test2 wallet has been deleted:

? main-star@elgafar-1> wallet list
*  main-star stars1dtlndrtpth240retkn8l54w8gg2g4hzpq3ugas
   testing-star stars12xxey4enkcfgv522cxl03xmk7tdpmy6kcvtaql
   uploader stars1zf6avrfjnrztjnvj2as266eeqlfc7kggzedmcc
   user55 stars1x0vwc9j3mzn47zrmgt25kjfzpevyvc5t652vt7
   keplr-star stars105j9m29uk2486rjwawkcucp8e3l52f8wpgyc2c
   guide stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas

Use

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 stars14pmn28jyqgphd5wv0z28ppxe5ryeraqqyhkuas

autosave
generate
recover
rename
reveal
list
migrate-legacy
rm
use