mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-02 01:40:12 +02:00
Merge bitcoin/bitcoin#28414: wallet rpc: return final tx hex from walletprocesspsbt if complete
2e249b9227doc: add release note for PR #28414 (Matthew Zipkin)4614332fc4test: remove unnecessary finalizepsbt rpc calls (ismaelsadeeq)e3d484b603wallet rpc: return final tx hex from walletprocesspsbt if complete (Matthew Zipkin) Pull request description: See https://github.com/bitcoin/bitcoin/pull/28363#discussion_r1315753887 `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. ACKs for top commit: ismaelsadeeq: re ACK2e249b9227BrandonOdiwuor: re ACK2e249b9Randy808: Tested ACK2e249b9227achow101: ACK2e249b9227ishaanam: ACK2e249b9227Tree-SHA512: 229c1103265a9b4248f080935a7ad5607c3be3f9a096a9ab6554093b2cd8aa8b4d1fa55b1b97d3925ba208dbc3ccba4e4d37c40e1491db0d27ba3d9fe98f931e
This commit is contained in:
5
doc/release-notes-28414.md
Normal file
5
doc/release-notes-28414.md
Normal file
@@ -0,0 +1,5 @@
|
||||
RPC Wallet
|
||||
----------
|
||||
|
||||
- RPC `walletprocesspsbt` return object now includes field `hex` (if the transaction
|
||||
is complete) containing the serialized transaction suitable for RPC `sendrawtransaction`. (#28414)
|
||||
Reference in New Issue
Block a user