Setting Up Watch-Only Wallet with Electrum and Bitcoin Core

11 replies 197 views
fullnodeSenior Member
Posts: 434 · Reputation: 1205
#1Dec 13, 2019, 08:14 AM
Hey folks. I’m trying to figure out how to set up my offline Electrum wallet as a watch-only wallet in Bitcoin Core. Need to sign some transactions, and I think importing the public key is key... but can’t find much guidance on it. Any tips would be awesome. Thanks!
6 Reply Quote Share
chr1swhal3Full Member
Posts: 60 · Reputation: 254
#2Dec 14, 2019, 07:04 PM
Go to wallet settings and check out the wallet info. You can snag your master public key from there. When creating your watch-only wallet, just select the option to use a master key and plug in your xpub. Just remember, your main wallet should be offline for security.
1 Reply Quote Share
0xLynxMember
Posts: 113 · Reputation: 205
#3Dec 17, 2019, 03:50 AM
So, you’ve got your cold Electrum wallet, and now you wanna make a watch-only wallet in Bitcoin Core? Electrum uses that older key pair setup, while Bitcoin Core now rolls with descriptors by default. You can’t just import the Electrum public key directly. You’ll need to create a descriptor for that key and then import it into Bitcoin Core.
4 Reply Quote Share
Posts: 83 · Reputation: 179
#4Dec 17, 2019, 08:59 AM
If I’m gonna import an xpub from Electrum, I’ve noticed it’s in p2wpkh format. But to get it into Bitcoin Core, I gotta convert it to legacy format. Open the Electrum console, then run this command to switch from zpub to xpub. Easy peasy.
0 Reply Quote Share
whale420Senior Member
Posts: 727 · Reputation: 853
#5Dec 17, 2019, 09:59 AM
I don’t see why you’d wanna use Bitcoin Core as your watch-only wallet with an Electrum public key. Just keep using Electrum offline. Copy that master public key, then fire up Electrum on an online device and import it for watch-only access. No need for the heavy lifting of Bitcoin Core.
0 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#6Dec 17, 2019, 02:39 PM
Totally agree. Using Electrum means you’re not depending on those sketchy third-party servers to sync. You could set up your own Electrum server, but that just complicates things since you’ll still need to sync Bitcoin Core anyway.
2 Reply Quote Share
0xLynxMember
Posts: 113 · Reputation: 205
#7Dec 19, 2019, 05:52 AM
If you’re set on using Core, just make sure you know what values to include when importing the descriptor. If you’re moving from Electrum to Bitcoin Core, hitting up Sparrow wallet might help you generate the necessary descriptor without too much hassle.
2 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#8Dec 19, 2019, 08:22 AM
Using Sparrow is a smart move. Import your Electrum wallet file into it and check out the xpub/zpub field in Sparrow settings. That’ll give you the descriptor you need to import into Bitcoin Core.
0 Reply Quote Share
fullnodeSenior Member
Posts: 434 · Reputation: 1205
#9Dec 19, 2019, 11:13 AM
I tried the first command and it worked, but the second one threw an error at me... Something about invalid syntax. Maybe I’m using an older Electrum version? What gives?
1 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#10Dec 19, 2019, 05:02 PM
You might’ve missed the fact that the getdescriptorinfo command needs to be run in Bitcoin Core’s console, not Electrum’s. Just double-check the instructions, and it should work out.
3 Reply Quote Share
ColdGangMember
Posts: 152 · Reputation: 183
#11Dec 19, 2019, 10:43 PM
Exactly what I was thinking! The OP should’ve just created the wallet in Electrum and used it for watching too. Sure, you can technically watch an address, but having a public key is the way to go. It’s like having full access without the risk of signing transactions.
3 Reply Quote Share
Posts: 172 · Reputation: 24
#12Dec 19, 2019, 11:48 PM
No worries on that front. Regardless of the server you use, whether it’s public or your own, the coins are safe. Just keep in mind that any Electrum node records your IP and wallet info. But if you’re running your own server, that info stays private. Just my two cents.
2 Reply Quote Share

Related topics