Hi everyone, I'm not sure if this is the right sub forum for this however I'm having a bit of an issue with creating Bitcoin PSBT's in Bitcoin Core (V.20.0) and was hoping to get some community feedback if possible. Specifically what I'm attempting to do is to use Bitcoin Core to create and send PSBTs via my air gapped Cold Card. To achieve this I have used the "importmulti" command that is created by the Cold Card but unfortunately it seems to only create the command for a WPKH address scheme which I needed to modify to use P2PKH addresses.
To achieve this I had to take the original command which was:
importmulti '[{"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "wpkh([fingerprint/84h/0h/0h]xpub/0/*)#checksum", "internal": false}, {"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "wpkh([secret fingerprint/84h/0h/0h]secretxpub/1/*)#checksum", "internal": true}]'
To the modified as per below:
importmulti '[{"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "pkh([fingerprint/44h/0h/0h]xpub/0/*)#checksum", "internal": false}, {"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "pkh([fingerprint/44h/1h/0h]xpub/1/*)#checksum", "internal": false}]'
Note that I also had to calculate the correct checksum for the modified command using the "getdescriptorinfo" command and after uploading it into the console windown and rescanning the blockchain I could see my previous transactions and also create and broadcast PSBTs. What I'm now trying to figure out is a way that makes bitcoin core automatically create a change address that's associated with my Cold Card's change addresses just as Electrum does when you import the skeleton wallet into electrum. If anyone knows any way to do this I'd really appreciate the feedback. I do know there's kind of a work around by using a custom change address that you can manually enter in the core gui but this is sub optimal IMO. Thanks all in advance for your support!