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.
Type: string, required
The hex string of a raw transaction
Type: boolean, optional, default=false
Type: boolean, optional, default=depends on heuristic tests
Name | Type | Description |
---|---|---|
str | string | The resulting raw transaction (base64-encoded string) |
Create a transaction:
digibyte-cli createrawtransaction "[{\"txid\":\"myid\",\"vout\":0}]" "[{\"data\":\"00010203\"}]"
Convert the transaction to a PSBT:
digibyte-cli converttopsbt "rawtransaction"