How to Import Addresses from Sparrow into Bitcoin Core

3 replies 64 views
Posts: 2 · Reputation: 90
#1Mar 14, 2024, 01:33 AM
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.
4 Reply Quote Share
Posts: 25 · Reputation: 179
#2Mar 14, 2024, 05:10 AM
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.
0 Reply Quote Share
0xChadNewbie
Posts: 138 · Reputation: 3
#3Mar 15, 2024, 02:44 AM
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.
2 Reply Quote Share
Posts: 2 · Reputation: 90
#4Mar 17, 2024, 11:42 AM
Thanks a ton! This helped a lot.
0 Reply Quote Share

Related topics