To be able to import the descriptors of your Bitcoin Core pockets to your new Sparrow pockets, you first must listing the descriptors utilizing the RPC name listdescriptors:
$ ./construct/bin/bitcoin-cli -testnet4 -rpcwallet=descriptorstest listdescriptors
{
"wallet_name": "descriptorstest",
"descriptors": [
{
"desc": "pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/0/*)#z9wy65u0",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/1/*)#n3t98pvh",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "sh(wpkh([e0ffb904/49h/1h/0h]tpubDDV762GtRNWzcoCHRhbzRBY5PRG2Ncdb23DxhosjLyWPSwvcbME1BzDrUA7yRr7CUBaAjv2SYxunx2bqqN22C6t3FtU1UBiPv99UeZvR1cS/0/*))#drugahd0",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "sh(wpkh([e0ffb904/49h/1h/0h]tpubDDV762GtRNWzcoCHRhbzRBY5PRG2Ncdb23DxhosjLyWPSwvcbME1BzDrUA7yRr7CUBaAjv2SYxunx2bqqN22C6t3FtU1UBiPv99UeZvR1cS/1/*))#czj79gcs",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "tr([e0ffb904/86h/1h/0h]tpubDCEmL2pTBL343hXGaT1w2MEVGjdNpSCEshqNv4iouzP7YDUPkaPofzH3vWvoeM5qtB2it8KNJTpjbRrVYLcsQYaWg4m5K8azD5nDJML6WRo/0/*)#rp2a30h8",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "tr([e0ffb904/86h/1h/0h]tpubDCEmL2pTBL343hXGaT1w2MEVGjdNpSCEshqNv4iouzP7YDUPkaPofzH3vWvoeM5qtB2it8KNJTpjbRrVYLcsQYaWg4m5K8azD5nDJML6WRo/1/*)#j40uv68l",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "wpkh([e0ffb904/84h/1h/0h]tpubDCGh2f3tu6sVYbmjKXwxPsZ2nf6xmowoWRgiVXzULMcpwjh1abxE2KWiVc8a2kTjWLiJ9JnJESnsXq6kKfR8HwppLrpeAmKSKbtTYPc9JZB/0/*)#h2def08c",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "wpkh([e0ffb904/84h/1h/0h]tpubDCGh2f3tu6sVYbmjKXwxPsZ2nf6xmowoWRgiVXzULMcpwjh1abxE2KWiVc8a2kTjWLiJ9JnJESnsXq6kKfR8HwppLrpeAmKSKbtTYPc9JZB/1/*)#x7gc56hq",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
}
]
}
The listing of descriptors needs to be copied in a file (I’m not positive if the extension issues, however .txt works superb).
Then the file needs to be imported into Sparrow.
Concerning the error OP was reporting, that’s as a result of he probably copied within the import file your entire listdescriptors json output.
Sparrow is anticipating a descriptor, not a json object. For this reason it returns unrecognized prolonged key header for...:
The content material of the file have to be the one descriptors which are indicated with the important thing "desc" in listdescriptors output.
For my earlier instance if I wish to import the primary two descriptors I’ll solely add to my file:
pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/0/*)#z9wy65u0
pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/1/*)#n3t98pvh
After importing that file you’ll be able to examine the import was right by checking the master-fingerprint and derivation path:
It matches the unique one [e0ffb904/44h/1h/0h] so the import was profitable.
To be able to import the descriptors of your Bitcoin Core pockets to your new Sparrow pockets, you first must listing the descriptors utilizing the RPC name listdescriptors:
$ ./construct/bin/bitcoin-cli -testnet4 -rpcwallet=descriptorstest listdescriptors
{
"wallet_name": "descriptorstest",
"descriptors": [
{
"desc": "pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/0/*)#z9wy65u0",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/1/*)#n3t98pvh",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "sh(wpkh([e0ffb904/49h/1h/0h]tpubDDV762GtRNWzcoCHRhbzRBY5PRG2Ncdb23DxhosjLyWPSwvcbME1BzDrUA7yRr7CUBaAjv2SYxunx2bqqN22C6t3FtU1UBiPv99UeZvR1cS/0/*))#drugahd0",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "sh(wpkh([e0ffb904/49h/1h/0h]tpubDDV762GtRNWzcoCHRhbzRBY5PRG2Ncdb23DxhosjLyWPSwvcbME1BzDrUA7yRr7CUBaAjv2SYxunx2bqqN22C6t3FtU1UBiPv99UeZvR1cS/1/*))#czj79gcs",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "tr([e0ffb904/86h/1h/0h]tpubDCEmL2pTBL343hXGaT1w2MEVGjdNpSCEshqNv4iouzP7YDUPkaPofzH3vWvoeM5qtB2it8KNJTpjbRrVYLcsQYaWg4m5K8azD5nDJML6WRo/0/*)#rp2a30h8",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "tr([e0ffb904/86h/1h/0h]tpubDCEmL2pTBL343hXGaT1w2MEVGjdNpSCEshqNv4iouzP7YDUPkaPofzH3vWvoeM5qtB2it8KNJTpjbRrVYLcsQYaWg4m5K8azD5nDJML6WRo/1/*)#j40uv68l",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "wpkh([e0ffb904/84h/1h/0h]tpubDCGh2f3tu6sVYbmjKXwxPsZ2nf6xmowoWRgiVXzULMcpwjh1abxE2KWiVc8a2kTjWLiJ9JnJESnsXq6kKfR8HwppLrpeAmKSKbtTYPc9JZB/0/*)#h2def08c",
"timestamp": 1779473837,
"lively": true,
"inside": false,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
},
{
"desc": "wpkh([e0ffb904/84h/1h/0h]tpubDCGh2f3tu6sVYbmjKXwxPsZ2nf6xmowoWRgiVXzULMcpwjh1abxE2KWiVc8a2kTjWLiJ9JnJESnsXq6kKfR8HwppLrpeAmKSKbtTYPc9JZB/1/*)#x7gc56hq",
"timestamp": 1779473837,
"lively": true,
"inside": true,
"vary": [
0,
999
],
"subsequent": 0,
"next_index": 0
}
]
}
The listing of descriptors needs to be copied in a file (I’m not positive if the extension issues, however .txt works superb).
Then the file needs to be imported into Sparrow.
Concerning the error OP was reporting, that’s as a result of he probably copied within the import file your entire listdescriptors json output.
Sparrow is anticipating a descriptor, not a json object. For this reason it returns unrecognized prolonged key header for...:
The content material of the file have to be the one descriptors which are indicated with the important thing "desc" in listdescriptors output.
For my earlier instance if I wish to import the primary two descriptors I’ll solely add to my file:
pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/0/*)#z9wy65u0
pkh([e0ffb904/44h/1h/0h]tpubDDXbj9wYQeG5c1syaE1faUQv85PRadQ9Hc4AqvurD41LM7Xx21KkZdnp5w9nKoSkrsSzUsZnYzrFTAViuV7jZLo3BMoZr4hyfud3QAEVMud/1/*)#n3t98pvh
After importing that file you’ll be able to examine the import was right by checking the master-fingerprint and derivation path:
It matches the unique one [e0ffb904/44h/1h/0h] so the import was profitable.



















