See #28363 (review)
walletprocesspsbt
currently returns a base64-encoded PSBT and a boolean indicating if the tx is “complete”. If it is complete, the base64 PSBT can be finalized with finalizepsbt
which returns the hex-encoded transaction suitable for sendrawtransaction
.
With this patch, walletprocesspsbt
return object will ALSO include the broadcast-able hex string if the tx is already final. This saves users the extra step of calling finalizepsbt
assuming they have already inspected and approve the transaction from earlier steps.