I am working with Solana and phantom wallet I have a wallet with a public key and I have it's secret phrase composed of 12 words. when I generate keypairs from the secret phrase I use:
const getKeyPair = (mnemomic) => {
const seed = bip39.mnemonicToSeedSync(mnemomic).slice(0, 32);
const Keypair = web3.Keypair.fromSeed(seed);
return Keypair;
};
the generated keypair has publicKey and privateKey , but when am checking my balance using the generated public key I find the balance is always 0 even when I try to airdrop Sol using my code it's not getting in the account.
But if I check using my public key from phantom wallet I get the Sol I have and if I want to airdrop sols they also proceed normally.
Why is my generated public key not the same as the one in phantom wallet?