converttopsbt

This should be used only with createrawtransaction and fundrawtransaction createpsbt and walletcreatefundedpsbt should be used for new applications.

Argument #1-hexstring

Type: string, Required

Description: The hex string of a raw transaction

Argument #2-permitsigdata

Type: boolean, Optional
Default=false

Description: 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

Description: 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 deserialization will be tried. If false, only non-witness deserialization will be tried. This boolean should reflect whether the transaction has inputs (e.g. fully valid, or on-chain transactions), if known by the caller.

Result

Type: string (hex)

Description: The resulting raw transaction (base64-encoded string)