River Logo
Basics Markets Storage Mining Taxes Technology News
Search
River.com Buy Bitcoin
Glossary

wtxid

1 min read

The witness transaction ID (wtxid) of a transaction is calculated by taking the double SHA-256 hash of a serialized transaction, including its SegWit marker, version, and witness. When a normal txid is calculated, it excludes witness information, and thus if a transaction has no SegWit inputs, its wtxid is identical to its txid.

Wtxids are used by miners to build a Merkle tree, which is included in a output of the coinbase transaction. This removes any malleability of the witness of a transaction once the transaction is included in a block.

Related Terms
Transaction ID (txid)
A txid or Transaction ID is a string of letters and numbers that identify a specific transaction. It can be used to look up a transaction on a node or block explorer.
Learn more.
Witness
The witness of a transaction is a section of SegWit transactions not included when a transaction is hashed and signed. The witness contains the witnessScripts for all SegWit inputs of a transaction.
Learn more.
SegWit
Segregated Witness (SegWit) is a soft-fork upgrade to Bitcoin which was activated in 2017. SegWit fixed the problem of transaction malleability, and paved the way for the implementation of the Lightning Network and many other upgrades.
Learn more.
Merkle Root
The Merkle root is the final node in a Merkle tree. It is a hash which includes the hashes of all transactions in a block.
Learn more.
Explore More Terms →

Buy Bitcoin instantly with River today

Buy bitcoin
River Logo

NMLS ID#1906809

© 2025 River Financial Inc. All rights reserved.

River iOS app River Android app

Product

Sign Up Buy Bitcoin Zero Fees River Link Security Bitcoin Price Private Client Business Bitcoin Inheritance Mining

Company

About Developers Careers Newsroom Areas of Availability

Support

Help Center Contact Support Site Status

Social

Social media icon for Twitter Twitter Social media icon for LinkedIn LinkedIn Social media icon for GitHub GitHub

Learn

Bitcoin Basics Bitcoin Markets Bitcoin Storage Bitcoin Mining Bitcoin Taxes Blockchain Technology Bitcoin News Bitcoin Glossary

Featured Articles

What Is Bitcoin? Why Does Bitcoin Have Value? How to Buy Bitcoin

River Intelligence

Market Insights Company Announcements Bitcoin Engineering Newsletter

Legal

Licenses & Disclosures Privacy Policy Terms of Service