bitcoind.app
CommandsGuidesContact ↗
Home/Rawtransactions/finalizepsbt
Rawtransactions

finalizepsbt

Finalize the inputs of a PSBT. Signs and finalizes where possible.

Parameters

psbtstringREQUIRED
A base64 PSBT string
extractbooleanoptional
If true and the transaction is complete, extract final tx. Default: true

Returns

objectResult with psbt, hex, and complete fields

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"finalizepsbt","params":["psbt_base64"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "psbt": "cHNidP8BA...",
  "hex": "0200000001...",
  "complete": true
}
← Previous
decodescript
Next →
getrawtransaction

More Rawtransactions Commands

analyzepsbtcombinepsbtcombinerawtransactionconverttopsbtcreatepsbtcreaterawtransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗