Bitcoin

Bitcoin Core – Import descriptor not working (JSON parsing error)

I tried setting up a surveillance-only wallet on Bitcoin Core using the importdescriptors command. To put this into context, we want to generate PSBT using a surveillance-only wallet on an online computer and then sign the transaction on another offline computer.

No matter how I enter the command, I always get “Error: Error parsing JSON:”.

The command I entered is from testnet.

importdescriptors ("desc":"pkh((0e40c862/44h/1h/0h)tpubDCaMqQiGwzuDcCigY2213yHeJqiQEeFKHPJ8KJdWdh6F6hcKjQmDNU4tdwVNQ7PUpSJfs8subNajEs27YpS5cyfet7LQSTsgCTsvqx3ted4/0/*)#8r64ejp4","timestamp":1694822561,"internal":false)

In other posts, removing all spaces in the command solved the problem, but unfortunately it didn’t work for me. I am using this command in bitcoin-qt console on Ubuntu Linux.

Any help would be greatly appreciated!

Related Articles

Back to top button