<p>You have to convert the xpub into p2wpkh or p2wpkh-p2sh format. You can use <a href="https://github.com/AbdussamadA/electrum-convert-key" rel="nofollow noreferrer">this script</a> to do it.</p>

CC BY-SA 3.0
2018-03-09T09:06:37.987Z
I have no idea how i am meant to run that script, can you please guide me?
chicko
CC BY-SA 3.0
2018-03-09T21:18:59.143Z
see the readme file. you have to run it with the python3 interpreter in a terminal/shell.
Abdussamad
CC BY-SA 3.0
2018-03-09T03:44:22.443Z
2018-03-09T03:44:22.443Z
Abdussamad
<p>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.</p>

CC BY-SA 3.0
2018-03-08T18:27:36.797Z
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
CC BY-SA 3.0
2018-03-09T01:13:49.393Z
you should use the mnemonic phrase to import your wallet because I think they assume the path is 44 for that xPUP
Tailer
CC BY-SA 3.0
2018-03-09T09:07:38.293Z
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
CC BY-SA 3.0
2018-03-09T10:27:57.687Z
if you have your addresses you can add it to electrum as (watch-only) so you watch it.
Tailer
CC BY-SA 3.0
2018-03-09T11:06:13.357Z
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
CC BY-SA 3.0
2018-03-08T14:30:08.987Z
2018-03-08T14:30:08.987Z
Tailer
<p>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.</p>

<electrum><segregated-witness><xpub>
Segwit Addressed from xpub key
chicko
# Segwit Addressed from xpub key

(Asked by: username_0 on 2018-03-08)

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.

**Tags:** electrum, segregated-witness, xpub


---

## 2 answers

### Answer by username_1 on 2018-03-09. Score: 1

You have to convert the xpub into p2wpkh or p2wpkh-p2sh format. You can use [this script](https://github.com/AbdussamadA/electrum-convert-key) to do it.

> **Comments:**
> **username_0**: I have no idea how i am meant to run that script, can you please guide me?  
> **username_1**: see the readme file. you have to run it with the python3 interpreter in a terminal/shell.  

---

### Answer by username_2 on 2018-03-08. Score: 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.

> **Comments:**
> **username_0**: 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  
> **username_2**: you should use the mnemonic phrase to import your wallet because I think they assume the path is 44 for that xPUP  
> **username_0**: 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?  
> **username_2**: if you have your addresses you can add it to electrum as (watch-only) so you watch it.  
> **username_0**: 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.  

---

