Skip to content

Calculating txid for SegWit transactions with the help of RPC #15232

@kristapsk

Description

@kristapsk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions