TeachMeBitcoin

The OutPoint Coordinate

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

The OutPoint: TXID and VOUT

To identify a specific piece of bitcoin in the multi-terabyte history of the blockchain, Bitcoin uses a 36-byte structure called an OutPoint.

1. Defining the OutPoint

An OutPoint is the unique coordinate of a UTXO. It consists of two pieces of data:

  1. TXID (32 Bytes): The unique ID of the transaction that created the output.

  2. VOUT (4 Bytes): The index of the output within that transaction (starting at 0).

2. Why Two Fields?

A single transaction can have dozens or even hundreds of outputs.

3. Storage in the Input

In the raw hex of a transaction, the OutPoint is the very first thing listed for each input.

4. The Genesis Case (Coinbase)

The only time an input does not point to a previous transaction is in a Coinbase Transaction.

Component Format Size
TXID Double-SHA256 Hash 32 Bytes
VOUT Unsigned Integer 4 Bytes
Total Raw Coordinate 36 Bytes

[!NOTE] Every full node maintains a "UTXO Set" (Chainstate) indexed by OutPoints. This allows the node to verify an input instantly without searching the entire blockchain.

In the next section, we will explain how the TXID itself is calculated.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!