I’m trying to import a Pay-to-Witness-Script-Hash (P2WSH) descriptor into my Bitcoin Core watch-only wallet using the importdescriptors
command. My goal is to ensure that the wallet reflects all balances and transactions ever created with that specific locking script. However, I’m running into several issues:
-
Checksum Errors:
-
Active Descriptor Must Be Ranged:
-
Success Without Active Flag:
- The descriptor is imported successfully only when
active
is set tofalse
, but this doesn’t fulfill my requirement of monitoring all balances and transactions related to the descriptor.
- The descriptor is imported successfully only when
Here’s an example of one of my import attempts:
importdescriptors '[{
"desc": "wsh(raw(630320830cb17521024e24d2aff4e1c51eaf122e0e5a6dfe218f7b3b883d1eb537ce9a7e040b329ca5ac6703b0830cb17521030618b7d1a6747cb13bba78611646a8d08c3683e14a0d2a4483c877561e1416efac68)#v6fytvxx)",
"timestamp": "now",
"active": true,
"internal": false,
"label": "My WSH Descriptor"
}]'
I want to understand:
- How to correctly format and include the checksum for the descriptor.
- How to properly set the descriptor as active while ensuring it reflects all associated balances and transactions.
- What changes are needed to correctly import the descriptor with all necessary flags?
Any guidance or examples would be greatly appreciated!