Hey all,
I'm struggling with Bitcoin Core. I want to create a new wallet there and import a bunch of addresses or descriptors from Sparrow. I managed to import some descriptors with private keys without issues.
Here’s my RPC:
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "importdescriptors",
"params": [
[
{
"internal": true,
"timestamp": 'now',
"desc": "tr(tprv...rest...of...key)#checksum"
}
]
]
}
I get a success response. I can see my taproot address in Core but can’t send any funds. I’ve tried send, sendtoaddress, sendmany, but nothing works.
Looks like you forgot to activate the descriptor meant for receiving. You need to add the "active":true argument to that descriptor.
Also, for the change address, make sure you have both "active":true and "internal":true in there. You probably know how to do that already, so I won't go into detail about it.
Yeah, that worked out! But you basically just imported a single change address from the private key part of your extended private key (tprv). Seems like that’s how Sparrow set it up, and I get that it’s tracking with that descriptor.
Just remember to follow those instructions for the commands that need a change address. It’ll only work with ranged descriptors, and you gotta set the derivation path and range; defaults are 0,999 if you don’t.