A Bitcoin transaction proof can be small enough to pass around as a receipt, even when the block containing the payment holds many other transactions. Its usefulness comes from a narrow claim: the transaction's identifier connects cryptographically to a particular block header.

That leaves important questions unanswered. Which chain does the header belong to? Were the block's transactions valid? Has a payment output since been spent? Understanding those boundaries makes a Merkle proof more useful, not less.

Following a short path through the block

Bitcoin's block reference describes a tree built from transaction identifiers, or TXIDs. Adjacent hashes are combined and hashed again, repeating until one root remains. That root occupies a field in the block's 80-byte header. At a level with an odd number of entries, the final entry is duplicated for pairing.

To check one transaction, a verifier does not need every other transaction. It needs the relevant neighboring hashes along the path to the root, together with information needed to reconstruct their order and tree structure. Starting from the transaction's TXID, it combines those pieces until it reaches a root to compare with the header.

In an illustrative eight-transaction tree, a single branch needs three neighboring hashes. The savings grow as the tree gets larger. A properly checked proof establishes this connection under the security assumptions of Bitcoin's hash function; an arbitrary collection of matching-looking strings does not.

A header needs a chain context

The Bitcoin whitepaper's simplified payment verification section pairs the Merkle branch with a chain of block headers. Simplified payment verification, usually shortened to SPV, lets a client follow proof of work without downloading and validating every transaction.

The client checks header-chain rules, including proof of work, and seeks the chain with the greatest accumulated work available to it. Merely accepting a header supplied alongside a receipt would skip that essential context. Anyone can construct a tree and matching header; producing the required work and connecting it to the relevant chain are separate requirements.

SPV uses miners' work as evidence that the network accepted the transaction. The whitepaper explicitly distinguishes this from independently checking the transaction's validity. More work extending a header strengthens that evidence under the model's assumptions, but does not turn a header-only client into a full transaction validator.

Inclusion leaves out validity and completeness

The Bitcoin developer operating-modes guide explains the central limitation: embedding a transaction in a block does not, by itself, guarantee that the transaction is valid. The proof does not execute its spending conditions or establish that its inputs were available under the consensus rules.

There is also an information problem. A peer can withhold a relevant transaction or its proof. Successfully verifying one supplied branch does not demonstrate that the peer has supplied every transaction the wallet should know about.

The same guide discusses connecting to multiple nodes as a mitigation, while warning that network isolation can undermine it. Several connections are useful only to the extent that they actually improve access to honest information. A proof checks something presented to the client; it cannot force a peer to reveal missing data.

SegWit adds another commitment boundary

BIP 141 distinguishes the traditional TXID from the witness-inclusive WTXID. For a SegWit transaction, witness data such as signatures is excluded from the TXID calculation.

Accordingly, an ordinary TXID Merkle proof does not authenticate the transaction's witness bytes. SegWit commits to witness data through another tree and a commitment in the coinbase transaction. Checking that additional commitment still differs from executing the spending rules. “I checked its proof” needs to specify which data and which checks were involved.

What Bitcoin Core's proof tools establish

Bitcoin Core's versioned gettxoutproof documentation describes a command returning a serialized proof of transaction inclusion. Supplying a block hash can help locate the transaction when automatic lookup is unavailable.

The corresponding verifytxoutproof documentation says verification returns the committed transaction identifiers and errors if the block is outside the node's best chain. That chain check is significant: the command does more than compare a branch with an isolated root. Its result depends on the verifying node's chain view.

Despite the command names, these are not certificates that an output remains spendable. Bitcoin Core documents gettxout separately for querying an unspent transaction output. A historical inclusion proof can remain mathematically correct after that output is spent.

The practical habit is to name the claim precisely. A transaction was included in a particular block; that block belongs to the chain the verifier currently recognizes; an output remains unspent. Those are distinct statements, requiring different evidence. A compact receipt is valuable when its reader knows which statement it actually supports.