How to recover a command line wallet

Hi , I made a Solana wallet on a different PC, now that system is lost. I have the public key and the recovery phrases, what commands should I use to recover my wallet?

Hi @milad and welcome to the forum! :wave:

You should be able to recover they key by running the following command:

solana-keygen recover ASK

If that doesn’t give you the same wallet, let me know. There are more options for different accounts from the same seed phrase.

It will ask you for your seed phrase, you should copy it and paste it into the terminal, and then you should be able to run solana balance to see your SOL balance.

1 Like