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;
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
bitcoin-core bitcoind client segregated-witness
New contributor
New contributor
New contributor
asked Jun 14 at 2:58
TzadikoTzadiko
111 bronze badge
111 bronze badge
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
answered Jun 14 at 3:33
Andrew Chow♦Andrew 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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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