Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Re: Comment my bitcoin address generation workflow
by
coolbits
on 12/12/2024, 08:31:57 UTC
⭐ Merited by garlonicon (1)
Thanks for your replies.

Quote
Quote
Should I also "pre-generate" change addresses?
In case of descriptor wallets, you don't have to "pre-generate" anything. As long as you have non-hardened derivation, and you know the master public key, you can derive public keys from that.

I think my descriptors are precisely "hardened", ie: they have single quotes in them. Does it still mean that if I save that "listdescriptors true" output, I can always get all my coins back from it, change or not?


Quote
I just do things manually, by using "createrawtransaction", and then "signrawtransactionwithwallet", to control everything.
Do I understand correctly that the best is to use "fundrawtransaction" in between, in order to let the wallet decide on the best UTXO set to use? Might as well just make the effort and ditch "sendtoaddress" alltogether at this point.