How can i get the public key of my segwit address with my extended public key. when i import the xpub into electrum it automatically creates a legacy wallet for me. i'm not with my nano and won't be with it for a while, please how do i go about it, thanks.
2 Answers
You have to convert the xpub into p2wpkh or p2wpkh-p2sh format. You can use this script to do it.
-
I have no idea how i am meant to run that script, can you please guide me?– chickoCommented Mar 9, 2018 at 9:06
-
see the readme file. you have to run it with the python3 interpreter in a terminal/shell. Commented Mar 9, 2018 at 21:18
You should change derive path to 49 instead of 44. if you are planning to use bech32 addresses then you should make your path 84 but it's not supported yet on electrum.
-
Thats the problem it doesn't let me choose the derivation path, it goes straight to creating the wallet when i put in my xpub key– chickoCommented Mar 8, 2018 at 18:27
-
you should use the mnemonic phrase to import your wallet because I think they assume the path is 44 for that xPUP– TailerCommented Mar 9, 2018 at 1:13
-
As i said in my original post, i am not close to my ledger or my seed i just want to monitor my address, please do you know another way?– chickoCommented Mar 9, 2018 at 9:07
-
if you have your addresses you can add it to electrum as (watch-only) so you watch it.– TailerCommented Mar 9, 2018 at 10:27
-
I only have the xpub, i thought that was all i needed and when i import into electrum i get the legacy address and i use segwit.– chickoCommented Mar 9, 2018 at 11:06