I typed in
solana-keygen new --no-output to create a paper wallet and it gave me a pubkey and seed phrase. I airdropped 1 SOL to the wallet using the pubkey from the CLI output. Now I can’t figure out how to transfer the SOL out of the wallet address. I tried using the following command:
solana transfer --from prompt:// <RECIPIENT_ACCOUNT_ADDRESS> 0.5 --allow-unfunded-recipient --fee-payer prompt:// and It asks me for my seed phrase, but then it tries to withdraw SOL from a different account.
Is the 1 SOL now stuck in the wallet address forever?
I am using the devnet so I’m not actually loosing anything here, however I am very confused. I understand that to get a usable address to a paper wallet I can just use the
solana-keygen pubkey prompt:// command and enter my seed phrase. However, it seems redundant (and dangerous) that the CLI provides a pubkey with no way to verify ownership over it when using the
solana-keygen new --no-output command. This leads me to believe that I must be missing something.
I’ve noticed the Solana docs refers to this redundant address as the “legacy, raw keypair’s pubkey” here:
Is there a way to generate a keypair file from a seed phrase using Solana CLI? If not, is there any way to verify ownership over this “legacy” address?
I understand that this is simply an issue with the CLI output and not the Solana CLI itself, however it’s highly misleading and seems to be a common source of confusion for beginners like myself. Also this output could potentially lead to financial loss if a beginner was foolish enough to transfer actual funds to the address before attempting to verify ownership.
Am I missing something? What is the point of this “legacy pubkey”?