-snip-
The xpubs displayed in listdescriptors command should work in Electrum.
What I forgot to mention is: he has to convert the xpub for other script types aside from p2pkh using the console.
But Bitcoin Core lists the extended private key descriptors from BIP44 to BIP86 formats. Electrum can only derive private keys from the root (m/0).
We're talking about creating "
linked" watch-only wallets in Electrum.
As you can see in my previous reply and that quoted reply, it's about extended public key (
xpub) which is already at the account_index when exported through listdescriptors.
Electrum can derive the next level (
chain_index - internal/external chain) and their associated child public keys from it.
You can easily test this with Bitcoin Core and Electrum, Core doesn't need to be synced to do it.
Here's a sample descriptor:
"wpkh([17cedf16/84h/0h/0h]xpub6CjQxHxGsw2zJZMTZm1x4A5pmJeceQKhg3peuJoknaDnhTEpFNtthgpMQWkwxLJhdJgq6V4B2xyum9ew9qQ5XctUipSqTBDb2b9BzTrstNy/0/*)#ypr3t3cs"
The derivation path indicates that the extended public key is derived at
17cedf16(m)/84h/0h/0h and the receiving addresses are to be derived with
.../0/addressesBTW, I've explained how to import a non watch-only wallet from Bitcoin Core to Electrum a few years ago:
/index.php?topic=5523526.msg64866403#msg64866403