user76655: 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.

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

76655: <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>
 5273: <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>
