Use the TxID to look up a Bitcoin transaction

A Bitcoin TxID is a 64-character hexadecimal identifier computed by hashing the transaction serialization without witness data twice with SHA-256. Use it to look up the transaction and check the payment output and confirmation status. The witness transaction ID, or wtxid, also commits to the witness data when present.

Compare txid and wtxid

Both identifiers are 256 bits. Traditional serialization includes the version, inputs, outputs and lock time. Any legacy signatures in input scripts are part of that serialization. SegWit serialization adds a marker, flag and witness fields.

IdentifierData hashed twice with SHA-256Where to look
txidTraditional serialization, excluding the witness fieldsUse it for explorer searches and Bitcoin Core getrawtransaction.
wtxidSegWit serialization, including the witness when presentBitcoin Core reports it as hash in verbose getrawtransaction output.

Verify a payment in three steps

1. Copy the TxID from the sending wallet and open a Bitcoin explorer for the right network, such as mainnet or testnet.

2. Match the intended recipient script or address and amount to the same output. A transaction can have multiple outputs, including change.

3. Check whether the transaction is in a block and how many confirmations it has. With Bitcoin Core, getrawtransaction with verbosity 1 shows transaction details. A lookup of a confirmed transaction generally needs a transaction index or the hash of an available block containing it.

Investigate a missing TxID

Recheck the network and copied identifier, then check whether the wallet actually broadcast the transaction. An unconfirmed transaction may be missing from an explorer or node because it never reached that mempool, was dropped or was replaced. If the wallet reports a replacement, look up the new TxID and verify the recipient output again.

Frequently asked questions

How long is a Bitcoin TxID? Its usual display is 64 hexadecimal characters, representing 32 bytes.

When do txid and wtxid match? For a transaction with empty witness data, both hashes use the traditional serialization and are equal.

Why can my wallet show a TxID that an explorer cannot find? The wallet can compute the TxID before broadcasting. Also check the network and whether the transaction was dropped or replaced.

Does a TxID prove the recipient was paid? Use it to find the transaction, then verify the intended recipient output, amount and confirmation status.

Sources

  1. BIP-141: Segregated Witness (Consensus layer)
  2. NIST: Secure Hash Standard (FIPS 180-4)
  3. BIP 144 — Witness serialization and hashes
  4. Bitcoin Core — getrawtransaction lookup and output fields

Prepared with AI assistance. This guide explains protocol behavior for educational use.

This content is for learning and risk education only and does not constitute investment advice.

Editorial policy (Chinese)