1

I am looking to restore my Solana CLI wallet from the mnemonic. The ID.json file was overwritten so I only have the seed phrase. It doesnt provide the same address when imported into phantom or sollet. Is there a command to do this or how can I restore my wallet?

Solana Dev
  • 11
  • 2
  • Might be a dupe of https://stackoverflow.com/questions/69245982/import-phantom-wallet-private-key-into-solana-cli ? – Jon C Apr 04 '22 at 17:54
  • @JonC I think so - 'It doesnt provide the same address when imported into phantom or sollet' makes me think it's referring to HD wallet addresses. – mikemaccana Jun 17 '22 at 11:24
  • Does this answer your question? [Import phantom wallet private key into solana CLI](https://stackoverflow.com/questions/69245982/import-phantom-wallet-private-key-into-solana-cli) – mikemaccana Jun 17 '22 at 11:24

1 Answers1

3

Sure! From the How to restore a Keypair from a mnemonic phrase:

solana-keygen recover

There's also TypeScript and CLI examples in the Solana cookbook

mikemaccana
  • 110,530
  • 99
  • 389
  • 494