Fair, warning, I’m still a little confused about some of the wallet recover options myself, but by testing locally I think I found a way you can restore your wallet using the seed phrase.
In step 2 you said that you tried to use the
solana-keygen pubkey prompt:// but for some reason that returns a different public key than if you use
solana-keygen recover -o outputkey.json and put in your seed phrase.
If you use the
recover command, it comes out with the same wallet address.
Hope that helps!
From my investigation so far…
It seems like there are actually many different keys that can be resolved from the same seed phrase. For instance, if I try to use the recovery phrase in the Sollet wallet, for one it gives me three different options for the recovery strategy to use:
- m/501’/0’/0/0 ( deprecated )
What those mean I have no idea. Not only do I have those options, though, it actually generates a bunch of accounts that could come from that. None of which have the same address as the account I originally generated the seed phrase with!
Talk about confusing. I’m going to do some more experimentation to find out what’s going on, but I think the rule of thumb is that you have to restore your wallet with the same wallet program that gave you the seed phrase. ( by this rule I would have thought that the
prompt:// thing would have worked with
solana-keygen, but apparently that’s different than
Edit: Another tip! I’m fairly certain that it will always be possible to recover your wallet no matter what if you have the contents of the
id.json file that contains your private key. Importing this key will work on any wallet as far as I understand.
So always keep that key file somewhere!