ore-cli icon indicating copy to clipboard operation
ore-cli copied to clipboard

Why did I generate a wallet using "solana keygen new", and then import mnemonics into the Phantom wallet, only to find that the wallet address displayed in the Phantom wallet is different from the pub key generated by "solana keygen new"?

Open sfter opened this issue 1 year ago • 17 comments

Why did I generate a wallet using "solana keygen new", and then import mnemonics into the Phantom wallet, only to find that the wallet address displayed in the Phantom wallet is different from the pub key generated by "solana keygen new"?

sfter avatar Apr 03 '24 02:04 sfter

Because of different derivation path Use path m/44'/501' when importing

palinko91 avatar Apr 03 '24 02:04 palinko91

often times phantom defaults to using index 1 instead of index 0 -- try solflare. think they start with index 0

jsblair9 avatar Apr 03 '24 03:04 jsblair9

/PATH...config/solana/id.json and copy the code in the id.json, use the code to import the wallet

Olabanji121 avatar Apr 03 '24 03:04 Olabanji121

use derivation-path params: --derivation-path "m/44'/501'/0'/0'"

alexlee85 avatar Apr 03 '24 08:04 alexlee85

copy the number with brackets fromid.json

  1. cat ~/.config/solana/id.json
  2. copy the numbers with the brackets [ ]
  3. go phantom and import wallet through private key, use past the numbers along with the brackets into private key space

You will be able to get to that account

snorlaxeats avatar Apr 03 '24 17:04 snorlaxeats

copy the number with brackets fromid.json

  1. cat ~/.config/solana/id.json
  2. copy the numbers with the brackets [ ]
  3. go phantom and import wallet through private key, use past the numbers along with the brackets into private key space

You will be able to get to that account

Thank you.

chhuang avatar Apr 04 '24 03:04 chhuang

i saw this in reddit and it worked .. now i have the same address that is in my phantom wallet

I generated a new paper wallet with solana-keygen new

The pubkey generated was something like AjezLcz...

I imported the seed on the Phantom wallet, and the generated pubkey was different from the one above

I tried running solana-keygen pubkey 'prompt://' and pasting the just generated seed without success. Same with ASK.

Then I tried running solana-keygen pubkey 'prompt:?key=0/0' and this one worked. The pubkey matches my Phantom wallet

I proceeded and ran a solana-keygen recover --force 'prompt:?key=0/0' and it also worked

Oz691 avatar Apr 04 '24 03:04 Oz691

copy the number with brackets fromid.json

  1. cat ~/.config/solana/id.json
  2. copy the numbers with the brackets [ ]
  3. go phantom and import wallet through private key, use past the numbers along with the brackets into private key space

You will be able to get to that account

when i try to run cat .config/solana/id.json file wasn't found cat: .config/solana/id.json: No such file or directory

iefhanz avatar Apr 04 '24 17:04 iefhanz

copy the number with brackets fromid.json

  1. cat ~/.config/solana/id.json
  2. copy the numbers with the brackets [ ]
  3. go phantom and import wallet through private key, use past the numbers along with the brackets into private key space

You will be able to get to that account

when i try to run cat .config/solana/id.json file wasn't found cat: .config/solana/id.json: No such file or directory

nvm, installed on root lol

iefhanz avatar Apr 04 '24 17:04 iefhanz

If I paid on the webpage first, is it possible to import it into the cli interface?

xarthurx avatar Apr 04 '24 20:04 xarthurx

If I paid on the webpage first, is it possible to import it into the cli interface?

No.

M-Argerich avatar Apr 06 '24 06:04 M-Argerich

If I paid on the webpage first, is it possible to import it into the cli interface?

No.

Actually YES. You need to import the private key from the website into your local cli.

xarthurx avatar Apr 06 '24 07:04 xarthurx

If I paid on the webpage first, is it possible to import it into the cli interface?

No.

Actually YES. You need to import the private key from the website into your local cli.

How can i get the private code from the web? I tried to get the code but I failed. Thank you in advance.

M-Argerich avatar Apr 06 '24 07:04 M-Argerich

If I paid on the webpage first, is it possible to import it into the cli interface?

No.

Actually YES. You need to import the private key from the website into your local cli.

How can i get the private code from the web? I tried to get the code but I failed. Thank you in advance.

image

Settings.

xarthurx avatar Apr 06 '24 07:04 xarthurx

solana-keygen pubkey 'prompt:?key=0/0'

that's works for me. thx bro.

check321 avatar Apr 07 '24 08:04 check321

solana-keygen pubkey 'prompt:?key=0/0'

that's works for me. thx bro.

Love it

Ur welcome

Oz691 avatar Apr 07 '24 22:04 Oz691