With legacy non-SegWit transactions one could do (for example, in bash script), createrawtransaction, then signtransactionwith{wallet,key} and then calculate txid using SHA-256d hash of returned transaction hex string, without sending transaction to the network using sendrawtransaction. That's not possible with SegWit transactions, as returned hex string includes witness data. Would be great if we could somehow export either CTransaction::ComputeHash() via RPC or be able to get hex string of transactions without witness data too.
With legacy non-SegWit transactions one could do (for example, in bash script),
createrawtransaction, thensigntransactionwith{wallet,key}and then calculate txid using SHA-256d hash of returned transaction hex string, without sending transaction to the network usingsendrawtransaction. That's not possible with SegWit transactions, as returned hex string includes witness data. Would be great if we could somehow export eitherCTransaction::ComputeHash()via RPC or be able to get hex string of transactions without witness data too.