.. This file is licensed under the MIT License (MIT) available on http://opensource.org/licenses/MIT. converttopsbt ============= ``converttopsbt "hexstring" ( permitsigdata iswitness )`` Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction createpsbt and walletcreatefundedpsbt should be used for new applications. Argument #1 - hexstring ~~~~~~~~~~~~~~~~~~~~~~~ **Type:** string, required The hex string of a raw transaction Argument #2 - permitsigdata ~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Type:** boolean, optional, default=false If true, any signatures in the input will be discarded and conversion. will continue. If false, RPC will fail if any signatures are present. Argument #3 - iswitness ~~~~~~~~~~~~~~~~~~~~~~~ **Type:** boolean, optional, default=depends on heuristic tests Whether the transaction hex is a serialized witness transaction. If iswitness is not present, heuristic tests will be used in decoding. If true, only witness deserializaion will be tried. If false, only non-witness deserialization will be tried. Only has an effect if permitsigdata is true. Examples ~~~~~~~~ .. highlight:: shell Create a transaction:: bitcoin-cli createrawtransaction "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"data\":\"00010203\"}]" Convert the transaction to a PSBT:: bitcoin-cli converttopsbt "rawtransaction"