0

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 2

1

You have to convert the xpub into p2wpkh or p2wpkh-p2sh format. You can use this script to do it.

2
  • I have no idea how i am meant to run that script, can you please guide me?
    – chicko
    Commented Mar 9, 2018 at 9:06
  • see the readme file. you have to run it with the python3 interpreter in a terminal/shell.
    – Abdussamad
    Commented Mar 9, 2018 at 21:18
0

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.

5
  • 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
    – chicko
    Commented 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
    – Tailer
    Commented 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?
    – chicko
    Commented Mar 9, 2018 at 9:07
  • if you have your addresses you can add it to electrum as (watch-only) so you watch it.
    – Tailer
    Commented 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.
    – chicko
    Commented Mar 9, 2018 at 11:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.