Creating a Watchonly Wallet After Migrating to Descriptor Wallets

4 replies 148 views
just_altNewbie
Posts: 2 · Reputation: 15
#1Jun 10, 2020, 05:55 AM
I just moved my old wallet to a descriptor wallet using Bitcoin Core v28.0.0. I wanna keep track of it, so I’m trying to set up a watchonly wallet. I made a new wallet without private keys and imported two wpkh descriptors for receiving and change addresses. But here’s the catch: since it’s a merged wallet, the watchonly will only monitor future transactions.
8 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#2Jun 10, 2020, 09:00 AM
You mean "migrated"? If that's the case, the descriptors for those migrated keys should pop up when you run the listdescriptors command. Just copy everything and import them again with importdescriptors. But, if your old wallet wasn’t HD, this could take forever since each key gets imported as a "combo" descriptor.
2 Reply Quote Share
just_altNewbie
Posts: 2 · Reputation: 15
#3Jun 10, 2020, 12:59 PM
Yeah, I meant "migrated". Fixed the title, thanks! I ran into some errors while importing descriptors, no clue what went wrong. I asked "Copilot" and it told me I could import all addresses from the legacy wallet in one go. That worked problem solved!
3 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#4Jun 10, 2020, 02:43 PM
Errors usually tell you what’s up, including any syntax issues. There’s an addr descriptor you can use for directly importing addresses. The combo descriptors work like your old wallet, covering all major script types for each key, except TapRoot.
2 Reply Quote Share
matrix2021Full Member
Posts: 92 · Reputation: 612
#5Jun 10, 2020, 07:15 PM
Don't forget to set the timestamp right when importing. You can also force a rescan with rescanblockchain after importing. Once that’s done, you should see all historical transactions pop up.
0 Reply Quote Share

Related topics