What does it mean if TXID and WTXID are the same?How do I enable segwit in Bitcoin Core 13.1?What is the weight of a block that contains no pay-to-witness scripts?Why include the Segregated Witness Merkle Root in the input field of the coinbase transaction?Why does bitcoin-cli not show the correct TXID for this transaction?What does the segwit upgrade path look like?What Does “Activation” Actually Mean In Bitcoin?Can I mix P2PKH and P2WPKH inputs in the same transaction?ELI5: How does Segregated Witness (segwit) work?How do I calculate the witness commitment hash for a given block?Concept of Block weight and segwit are still unclear

What is this tool/thing in an Aztec painting?

Why change the size when print a object

First-year PhD giving a talk among well-established researchers in the field

Wifi dongle speed is slower than advertised

Folding basket - is there such a thing?

Should developer taking test phones home or put in office?

Does Marvel have an equivalent of the Green Lantern?

Is this one of the engines from the 9/11 aircraft?

When to make kiddush at a Seder with no wine?

How many people are necessary to maintain modern civilisation?

Can Ogre clerics use Purify Food and Drink on humanoid characters?

Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?

What's currently blocking the construction of the wall between Mexico and the US?

How does metta sutra develop loving kindness

Hand soldering SMD 1206 components

Is it damaging to turn off a small fridge for two days every week?

Hot coffee brewing solutions for deep woods camping

Where can I find a database of galactic spectra?

What was the Shuttle Carrier Aircraft escape tunnel?

How to make clear to people I don't want to answer their "Where are you from?" question?

Interaction between Leyline of Anticipation and Teferi, Time Raveler

Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?

What is the legal status of travelling with methadone in your carry-on?

How risky is real estate?



What does it mean if TXID and WTXID are the same?


How do I enable segwit in Bitcoin Core 13.1?What is the weight of a block that contains no pay-to-witness scripts?Why include the Segregated Witness Merkle Root in the input field of the coinbase transaction?Why does bitcoin-cli not show the correct TXID for this transaction?What does the segwit upgrade path look like?What Does “Activation” Actually Mean In Bitcoin?Can I mix P2PKH and P2WPKH inputs in the same transaction?ELI5: How does Segregated Witness (segwit) work?How do I calculate the witness commitment hash for a given block?Concept of Block weight and segwit are still unclear






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm having a tough time understanding what exactly WTXID is and what it means when WTXID and TXID are the same (and vica versa).



What I understand is that WTXID includes the witness data. Since non-segwit transactions do not have the witness segregated, their WTXID should be the same as the TXID. Is that correct?










share|improve this question







New contributor



Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    2















    I'm having a tough time understanding what exactly WTXID is and what it means when WTXID and TXID are the same (and vica versa).



    What I understand is that WTXID includes the witness data. Since non-segwit transactions do not have the witness segregated, their WTXID should be the same as the TXID. Is that correct?










    share|improve this question







    New contributor



    Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      2












      2








      2








      I'm having a tough time understanding what exactly WTXID is and what it means when WTXID and TXID are the same (and vica versa).



      What I understand is that WTXID includes the witness data. Since non-segwit transactions do not have the witness segregated, their WTXID should be the same as the TXID. Is that correct?










      share|improve this question







      New contributor



      Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I'm having a tough time understanding what exactly WTXID is and what it means when WTXID and TXID are the same (and vica versa).



      What I understand is that WTXID includes the witness data. Since non-segwit transactions do not have the witness segregated, their WTXID should be the same as the TXID. Is that correct?







      bitcoin-core bitcoind client segregated-witness






      share|improve this question







      New contributor



      Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked Jun 14 at 2:58









      TzadikoTzadiko

      111 bronze badge




      111 bronze badge




      New contributor



      Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Tzadiko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          3














          The wtxid and txid are the same if and only if the transaction does not contain any segwit inputs. The wtxid is the hash of the entire transaction including all segwit data (i.e. the marker and flag bytes and the witness fields themselves). The txid is the hash of the non-segwit parts of the transaction. Because a transaction that does not have any segwit inputs does not have any segwit data at all, both the wtxid and txid hash the same data, so they are the same.






          share|improve this answer























          • Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

            – Tzadiko
            Jun 16 at 0:39











          • getrawtransaction can give you the full details of a transaction.

            – Andrew Chow
            Jun 16 at 1:50













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "308"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Tzadiko is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbitcoin.stackexchange.com%2fquestions%2f88373%2fwhat-does-it-mean-if-txid-and-wtxid-are-the-same%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          The wtxid and txid are the same if and only if the transaction does not contain any segwit inputs. The wtxid is the hash of the entire transaction including all segwit data (i.e. the marker and flag bytes and the witness fields themselves). The txid is the hash of the non-segwit parts of the transaction. Because a transaction that does not have any segwit inputs does not have any segwit data at all, both the wtxid and txid hash the same data, so they are the same.






          share|improve this answer























          • Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

            – Tzadiko
            Jun 16 at 0:39











          • getrawtransaction can give you the full details of a transaction.

            – Andrew Chow
            Jun 16 at 1:50















          3














          The wtxid and txid are the same if and only if the transaction does not contain any segwit inputs. The wtxid is the hash of the entire transaction including all segwit data (i.e. the marker and flag bytes and the witness fields themselves). The txid is the hash of the non-segwit parts of the transaction. Because a transaction that does not have any segwit inputs does not have any segwit data at all, both the wtxid and txid hash the same data, so they are the same.






          share|improve this answer























          • Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

            – Tzadiko
            Jun 16 at 0:39











          • getrawtransaction can give you the full details of a transaction.

            – Andrew Chow
            Jun 16 at 1:50













          3












          3








          3







          The wtxid and txid are the same if and only if the transaction does not contain any segwit inputs. The wtxid is the hash of the entire transaction including all segwit data (i.e. the marker and flag bytes and the witness fields themselves). The txid is the hash of the non-segwit parts of the transaction. Because a transaction that does not have any segwit inputs does not have any segwit data at all, both the wtxid and txid hash the same data, so they are the same.






          share|improve this answer













          The wtxid and txid are the same if and only if the transaction does not contain any segwit inputs. The wtxid is the hash of the entire transaction including all segwit data (i.e. the marker and flag bytes and the witness fields themselves). The txid is the hash of the non-segwit parts of the transaction. Because a transaction that does not have any segwit inputs does not have any segwit data at all, both the wtxid and txid hash the same data, so they are the same.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 14 at 3:33









          Andrew ChowAndrew Chow

          35.9k4 gold badges26 silver badges66 bronze badges




          35.9k4 gold badges26 silver badges66 bronze badges












          • Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

            – Tzadiko
            Jun 16 at 0:39











          • getrawtransaction can give you the full details of a transaction.

            – Andrew Chow
            Jun 16 at 1:50

















          • Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

            – Tzadiko
            Jun 16 at 0:39











          • getrawtransaction can give you the full details of a transaction.

            – Andrew Chow
            Jun 16 at 1:50
















          Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

          – Tzadiko
          Jun 16 at 0:39





          Thank you. By the way, do you know what RPC command I can use to get the inputs and outputs of transactions returned by getrawmempool?

          – Tzadiko
          Jun 16 at 0:39













          getrawtransaction can give you the full details of a transaction.

          – Andrew Chow
          Jun 16 at 1:50





          getrawtransaction can give you the full details of a transaction.

          – Andrew Chow
          Jun 16 at 1:50










          Tzadiko is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Tzadiko is a new contributor. Be nice, and check out our Code of Conduct.












          Tzadiko is a new contributor. Be nice, and check out our Code of Conduct.











          Tzadiko is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Bitcoin Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbitcoin.stackexchange.com%2fquestions%2f88373%2fwhat-does-it-mean-if-txid-and-wtxid-are-the-same%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form