what's the difference between txid and transaction hash? #16054

issue qshuai opened this issue on May 20, 2019
  1. qshuai commented at 8:11 AM on May 20, 2019: none

    The getblocktemplate RPC API will return txid and hash fields for every transaction entry. But they are the same value. So I want to know what's the difference and whether these double fields are necessary or not .

  2. jonatack commented at 10:11 AM on May 20, 2019: member

    Hi @qshuai, have a look at the output of:

    bitcoin-cli help getblocktemplate
    

    and this link:

    https://bitcoin.stackexchange.com/questions/77699/whats-the-difference-between-txid-and-hash-getrawtransaction-bitcoind

  3. MarcoFalke closed this on May 20, 2019

  4. qshuai commented at 2:30 AM on May 22, 2019: none

    @jonatack Get it. Thanks!

  5. MarcoFalke locked this on Dec 16, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 09:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me