Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use keys from Solana keygen to use a web wallet?

I ran this CLI command

solana-keygen new --outfile ~/my-solana-wallet/my-keypair.json

And have copied down the public key, BIP39 passphrase and 12 seed words. When I copy the seed words into phantom and sollet it shows empty accounts. I sent SOL to that public key address and worried I have lost it.

How do I access my account through sollet or phatom wallets?

like image 286
wxecqz123 Avatar asked Nov 16 '25 16:11

wxecqz123


2 Answers

Copy the contents of my-keypair.json and hit import wallet in phantom and paste this private key there. Then your account should be showing up.

Also check on which net you're on. Could be devnet/ testnet/ or localnet. The balances in each network would be different.

For getting SOL token on devnet you can use the airdrop function from the cli

like image 83
munanadi Avatar answered Nov 18 '25 20:11

munanadi


The first command you should run is:

solana-keygen recover --force 'prompt:?key=0/0' --outfile ~/.config/solana/id.json

Then the system will ask you to send the words. To do that, run a command like this:

solana transfer --from ~/.config/solana/id.json asjfdklasjdfklasjdfaksjdlkdkdkdjfdkjk 60.75 --fee-payer ~/.config/solana/id.json

like image 43
Juan Enrique García Sancho Avatar answered Nov 18 '25 20:11

Juan Enrique García Sancho