bitcoind.app
CommandsGuidesContact ↗
Home/Rawtransactions/converttopsbt
Rawtransactions

converttopsbt

Converts a network serialized transaction to a PSBT.

Parameters

hexstringstringREQUIRED
The hex string of a raw transaction
permitsigdatabooleanoptional
If true, allow conversion with signatures. Default: false
iswitnessbooleanoptional
Whether the tx hex is a serialized witness transaction

Returns

stringPSBT base64 string

Code Examples

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

Example Response

"cHNidP8BAFUCAAAAAe..."
← Previous
combinerawtransaction
Next →
createpsbt

More Rawtransactions Commands

analyzepsbtcombinepsbtcombinerawtransactioncreatepsbtcreaterawtransactiondecodepsbt

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗