Search code examples
phantomjssolana

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?


Solution

  • 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