Litecoin txid and wtxid: two identifiers, different evidence
One transaction can have two identifiers. Follow the serialized data behind txid and wtxid, reproduce archived examples and check the separate evidence of payment.
Dotted-underlined terms open a quick definition. Close it to keep reading.
A transaction can have a traditional transaction identifier, , and a witness identifier, . They are two views of transaction data, not two separate payments. Knowing either identifier also does not prove broadcast, valid signatures, or recipient credit.
This guide focuses on ordinary transparent transactions in Litecoin Core 0.21.5.8. It reuses a published regtest archive and adds offline hash calculations. It does not broadcast altered transactions or apply the ordinary serialization recipe to MWEB-only transactions.
What each identifier commits to
For the ordinary transparent case, txid is the double hash of the traditional serialization: version, inputs, outputs and locktime. is omitted. The wtxid includes the witness serialization, including its marker, flag and witness stacks. Human-readable hexadecimal identifiers conventionally display the resulting hash bytes in reversed order.
The SegWit specification defines the two identifiers. Litecoin's versioned implementation shows its corresponding hash paths. If a transaction has no witness, its witness hash equals its traditional hash under this ordinary path.
Identifiers and references describe different objects; none alone authenticates a person.
Item
What it identifies
Common confusion
txid
Transaction under its traditional hash path
Not a receipt from the network
wtxid
Transaction including witness data
Not a second independent payment
txid plus output index
A specific transparent outpoint
A transaction can contain several recipients and change
Block hash
A particular block header
Not the transaction ID or proof of service credit
This hashing is separate from . A transaction's txid is not the miner's Scrypt result, and changing a transaction is not the same operation as trying a -header nonce. The Scrypt guide describes those work inputs.
Why Core can return both txid and hash
The pinned transaction JSON writer labels the traditional identifier txid and the witness hash hash. For an ordinary SegWit transaction these fields can legitimately differ. A user comparing a 's transaction ID with the wrong JSON field can therefore see a mismatch without there being two payments.
Use your exact or version's help. One read-only example is:
litecoin-cli help decoderawtransaction
litecoin-cli decoderawtransaction "<raw-transaction-hex>"
Decoding parses the serialized data and describes its fields. It does not establish that referenced outputs exist, signatures satisfy their conditions, fees meet current policy or the transaction entered a block. A valid-looking JSON object is not an execution receipt.
For a known wallet transaction, gettransaction can supply wallet context. For other transactions, getrawtransaction has availability requirements: knowledge, an available specified block or an enabled transaction index as applicable. Its RPC implementation states those conditions. Failure to retrieve one transaction is not proof that it never existed.
An offline example with one preserved transaction
Our original September 2026 signed-candidate archive contains 164 local regtest policy checks. Those payment candidates were not broadcast or mined. The new script independently recomputes all 164 recorded txids and weights before selecting its first ordinary SegWit candidate for demonstration.
The selected original has 222 serialized bytes, 113 base bytes, weight 561 and 141. Its txid begins ca26832440e8…; its calculated wtxid begins 28348f7d0610…. These shortened prefixes are explanatory labels, not complete lookup identifiers. Full results and the procedure are downloadable below.
Offline modifications of archived data. The altered variants were not validated and must not be broadcast.
Case
txid result
wtxid result
Archived original
ca26832440e8…
28348f7d0610…
One witness byte changed
Same as original
Changes to 0e48b206e8bd…
One output-value byte changed
Changes to 65829f599ca5…
Changes to 2d87528b251a…
The witness-only alteration leaves the traditional serialization unchanged. The output alteration changes data included in both hash paths. All three variants have the same byte counts in this particular demonstration; byte count alone cannot identify transaction contents.
Crucially, recomputing a hash does not validate a signature. The changed witness and output cases are unvalidated byte strings, not demonstrated alternate valid spends. The exercise shows what the identifiers cover, not a technique to change somebody else's authorized payment.
What SegWit does and does not stabilize
Separating witness data from txid addresses important forms of unintentional malleability for eligible transactions. It does not freeze every possible transaction constructed from the same funds. Changing a covered output, input, sequence or locktime normally changes the traditional identifier as well.
An authorized replacement is a different topic from an outsider changing an existing signature representation. A fee bump can alter outputs or other covered transaction data and produce a new txid. Support for creating and relaying replacements depends on the wallet, transaction and node policy. See the replacement and cancellation guide.
Also avoid applying the witness-only example to every possible input script. Traditional scriptSig data remains in the txid serialization. Mixed input types and signature modes need their actual rules analyzed. “SegWit fixed all malleability” is too broad.
An ID is a reference, not proof that you were paid
A sender can compute an identifier before broadcasting. A screenshot can display an identifier for an unrelated transaction. Even a real confirmed transaction can pay several destinations, or a different amount from the invoice. Identify the intended output and verify its chain and current status.
Confirm the actual network and full identifier through a source you intend to use.
Inspect the relevant recipient output, amount and index rather than the transaction's input total.
Check current active-chain inclusion and depth, or the particular node's unconfirmed state.
Check the receiver's required confirmations and account or invoice credit separately.
Before retrying, preserve the first transaction's state so a second payment does not create a duplicate.
Litecoin's implementation explicitly handles -only transactions through a different identifier path involving a kernel hash. Its witness-hash path also excludes MWEB serialization where specified. Therefore “double-hash all bytes I downloaded” is not a universal Litecoin identifier recipe.
The offline parser supplied here deliberately accepts only the ordinary transparent SegWit form used by the archived study. It is not a general Litecoin transaction decoder, a block validator or a tool for interpreting arbitrary MWEB records. Use a compatible current implementation for those structures.
Reproduce the demonstration without wallet secrets
The script uses the Python standard library, reads only the specified study file and prints calculations. It makes no network connection or wallet operation. It checks hashes and serialization weights, not cryptographic signature validity or current spendability. The method notes and checksums identify the evidence and downloadable files.
Frequently asked questions
Are txid and wtxid two payments?
No. They are identifiers covering different serialized views of a transaction. Do not count them as separate receipts.
What does Core's hash field mean here?
For the ordinary transparent transaction JSON described here, it is the witness hash. The txid field is the traditional transaction identifier.
Can a witness change leave txid unchanged?
Yes under the ordinary SegWit hash path. That does not establish that the altered witness is a valid signature or spend.
Does decoding prove a transaction is valid?
No. Parsing and calculating identifiers do not check all signatures, input availability, policy, broadcast or inclusion.
Does a fee replacement keep the same txid?
Not generally. Changes to covered transaction data can produce a new identifier. Wallet and relay support for replacement are separate questions.
Does this script handle MWEB-only transactions?
No. It is deliberately limited to the ordinary transparent SegWit serialization in the archived study. MWEB has separate implementation paths.
Litecoin (LTC)
In brief A peer-to-peer cryptocurrency with its own Scrypt proof-of-work network and a maximum issuance of 84 million LTC.
A peer-to-peer cryptocurrency launched in 2011. Litecoin uses Scrypt proof of work, targets an average 2.5-minute block interval and has an issuance schedule capped at 84 million LTC. Individual block times and payment acceptance times vary.
For example Sending 0.1 LTC on Litecoin transfers a fraction of one coin; you do not need to buy a whole LTC first.
Common mistake Assuming a token with LTC in its name on another network is automatically native Litecoin.
In brief A transaction identifier for looking up outputs and confirmations, which alone does not prove that a payment arrived.
The identifier used to look up a transaction. For an ordinary transparent Litecoin transaction it is shown as a 64-character hexadecimal string. Use it to inspect the transaction's outputs and confirmations; the ID alone does not prove a payment is confirmed.
For example Copy the TXID from your wallet's payment details into a Litecoin explorer to check the recipient output and confirmation count.
Common mistake Sharing a seed phrase to trace a payment, or treating a screenshot or TXID alone as proof that the expected amount arrived.
In brief An identifier that includes an ordinary transparent transaction's witness data, unlike its TXID when witness data is present.
An identifier calculated from an ordinary transparent transaction's serialization including its witness data. For a SegWit transaction with witness data, it differs from the TXID that excludes that data. Both identify transaction data; neither alone proves broadcast, confirmation or recipient credit.
For example A decoded SegWit payment can report one value under txid and a different witness transaction hash under hash.
Common mistake Treating two different identifier fields as two separate payments, or assuming a computed identifier proves a node accepted the transaction.
In brief A transaction gains confirmations as blocks build on its inclusion, but those confirmations can fall if chain history changes.
A transaction receives its first confirmation when included in a block in the accepted chain. Each block then built on top adds another. A chain reorganization can reduce or remove the count. The recipient decides how many confirmations it requires. Litecoin targets an average 2.5-minute block interval; individual blocks can arrive sooner or much later.
For example A transaction in the latest accepted block has one confirmation; the next block raises that count to two.
Common mistake Confusing a wallet's sent message, a TXID or mempool visibility with the first confirmation.
In brief A transaction format and validation change that separates witness data and changes how block capacity is counted.
Segregated Witness: a change to transaction serialization and validation that separates witness data, fixes certain transaction-malleability issues and changes capacity accounting. Litecoin activated it in May 2017.
For example An ltc1q receiving address uses a SegWit format; the sender still needs to check that its service accepts that address.
Common mistake Assuming every wallet supports every address format, or that SegWit guarantees a fixed confirmation time.
In brief A cryptographic hash function used twice in Bitcoin mining; Litecoin mining uses Scrypt but still uses SHA-256 elsewhere.
A cryptographic hash function producing a 256-bit digest. Bitcoin mining uses a double-SHA-256 construction; Litecoin proof of work uses Scrypt. Litecoin nevertheless uses SHA-256-based functions elsewhere, including transaction and block identification.
For example A Bitcoin mining device advertises SHA-256 hash power, while Litecoin mining hardware advertises Scrypt hash power.
Common mistake Assuming Litecoin does not use SHA-256 anywhere simply because its proof-of-work algorithm is Scrypt.
In brief SegWit input data, such as signatures and scripts, that nodes validate as part of the transaction.
Data supplied with a SegWit transaction input to satisfy its spending conditions, such as signatures, public keys or a witness script. It is serialized separately from the transaction's base data but still validated by nodes and committed to by the block. It is not a private-key backup.
For example A P2WPKH spend carries its signature and public key in the input's witness, while its ordinary unlocking script is empty for the native form.
Common mistake Thinking separate serialization makes witness data optional, unvalidated or stored outside the blockchain.
In brief The hashing method used for Litecoin mining; Scrypt and Bitcoin's SHA-256 mining hardware are not interchangeable.
A memory-hard key-derivation function also used in Litecoin's proof-of-work hashing. Litecoin uses a particular Scrypt configuration rather than Bitcoin's double-SHA-256 mining algorithm. Specialized Scrypt ASICs exist, so memory-hard does not mean ASIC-proof.
For example A Litecoin miner needs Scrypt-compatible hardware; a SHA-256 Bitcoin miner does different work.
Common mistake Assuming the algorithm means current Litecoin mining is practical or profitable on an ordinary laptop.
In brief A system where miners compete to find valid hash results, while nodes independently check the resulting blocks.
A system in which miners search for a hash satisfying a network difficulty target. Litecoin uses Scrypt for this work; Bitcoin uses double SHA-256. Validating nodes still check all the block's rules, not only its proof of work.
For example A miner searches for valid work, while nodes check that the resulting block also follows the transaction and consensus rules.
Common mistake Thinking proof of work alone lets a miner spend someone else's coins or choose any subsidy amount.
In brief A group of transactions linked to the previous block under the network's rules.
A batch of transactions accepted under the network rules and linked to the previous block. Litecoin targets one new block every 2.5 minutes on average; a particular block may arrive sooner or much later.
For example Your payment may wait unconfirmed and then receive its first confirmation when a miner includes it in an accepted block.
Common mistake Treating the 2.5-minute target as a countdown or a maximum wait for your payment.
In brief A tool showing its indexed view of public blockchain data, which cannot reveal a service's internal account status.
A website or app that indexes blockchain data so you can inspect blocks, transactions and outputs. It reports its own data view. Looking up a public transaction needs no private key, and an explorer cannot see a service's internal account-crediting decisions.
For example Look up a transparent Litecoin TXID to check the destination output, amount and reported confirmations.
Common mistake Entering recovery words to track a public transaction, or treating one explorer's missing result as proof that no payment exists.
In brief Software or a device for managing wallet keys and payments, though a watch-only setup cannot sign on its own.
Software or a device that manages keys and helps you receive and send Litecoin. Coins are recorded on the blockchain. A watch-only wallet can show addresses and transactions without holding the keys needed to spend.
For example One wallet can generate several receiving addresses and still show them as a single combined balance.
Common mistake Thinking coins live inside the app, or that seeing a balance proves that the wallet can sign a spend.
In brief A participant running network software; a full node checks rules but need not keep all old block files.
A participant running network software. A full node independently validates rules; a pruned full node can discard older block files after validation. Not every node stores the complete historical blockchain.
For example A pruned full node checks the chain but later discards old block files to reduce disk use.
Common mistake Assuming every node is a miner, or that pruning means it skipped consensus validation.
In brief One node's local collection of accepted but unconfirmed transactions, which may differ from other nodes' collections.
A node's local collection of unconfirmed transactions it currently accepts. Nodes can see, retain or remove different transactions, so there is no single global waiting room. Appearing in a mempool is not confirmation or a guarantee of later inclusion.
For example One explorer may see your unconfirmed transaction while another node has not received it or has already removed it.
Common mistake Assuming that absence from one mempool proves the payment was never broadcast or that a seen transaction must confirm.
In brief A fee-sizing unit for ordinary transparent transactions, usually weight divided by four and rounded up.
A size unit used when quoting fees for ordinary transparent transactions. The usual calculation divides transaction weight by four and rounds up; node policy can also account for signature-operation cost. It can differ from the raw serialized byte count. Use the size unit expected by the quoted fee rate.
For example A transparent transaction with weight 565 has a virtual size of 142 vB, because the division rounds up.
Common mistake Multiplying a litoshi-per-vB rate by an unrelated raw-byte count or assuming the same formula covers every MWEB component.
In brief Litecoin's optional layer that conceals amounts inside it, while base-chain and boundary activity can still reveal information.
Mimblewimble Extension Blocks, activated on Litecoin in May 2022. MWEB conceals amounts inside the extension layer; the base chain and boundary transfers can reveal information. Use maintained software and review the 2026 security postmortem.
For example An MWEB transfer uses compatible software and a different address format from an ordinary transparent Litecoin transfer.
Common mistake Assuming every LTC wallet or exchange accepts MWEB addresses, or that optional privacy removes all possible information leaks.
Content review recorded: 2026-10-22. The review record does not identify a separate independent reviewer. An edited date above records an edit, not a new fact-check. AI-assisted editing or new artwork alone does not complete a source review.
Editor-in-chief of Litecoin.watch and founder of MyBank.pl. His published work covers foreign exchange, financial education and Litecoin. On Litecoin.watch, his remit includes editorial direction, source transparency and the practical guides and research published by the site.