Transaction Outputs
9 min readarticleIncludes quiz · 5 questions
What is a Transaction Output?
- •Definition: A destination address (or script) and the amount of Bitcoin being sent there.
- •Components: Value (in satoshis), locking script (scriptPubKey).
- •Creates UTXOs: Each output becomes a new UTXO for the recipient.
- •Multiple outputs: Most transactions have at least 2 outputs (payment + change).
- •Locked: Outputs are locked to specific spending conditions (usually an address).
Key Definitions:
- •Output: A pair of (amount, locking script) that defines where Bitcoin goes.
- •Value: Amount of Bitcoin in satoshis (1 BTC = 100,000,000 sats).
- •scriptPubKey: The locking script that defines spending conditions.
- •Change output: An output back to yourself with leftover funds.
- •OP_RETURN: A special output type for storing data (not spendable Bitcoin).
- •Dust limit: Minimum output size (typically 546 satoshis) to prevent spam.
Output Structure:
``` Output: Value: 50000000 (0.5 BTC in satoshis) scriptPubKey: OP_DUP OP_HASH160 <address hash> OP_EQUALVERIFY OP_CHECKSIG ```
This says: "0.5 BTC is locked to this address. To spend it, provide a signature from the matching private key."
Output Types:
P2PKH (Pay-to-Public-Key-Hash) - Legacy
P2SH (Pay-to-Script-Hash)
P2WPKH (SegWit native)
- •Locks to witness public key hash (bc1q...)
- •Lower fees, malleability fix
- •scriptPubKey: OP_0 <pubkey hash>
P2TR (Taproot)
- •Locks to Taproot output (bc1p...)
- •Best privacy and flexibility
- •scriptPubKey: OP_1 <32-byte key>
OP_RETURN (Data storage)
- •Stores up to 80 bytes of data
- •Not spendable—burned Bitcoin
- •Used for timestamps, proofs, metadata
Output Ordering:
- •Outputs are indexed starting from 0
- •Order matters when referencing them as inputs later
- •Some wallets randomize output order for privacy
- •Change output position shouldn't be predictable
Example: Output 0: 0.3 BTC → Bob Output 1: 0.1999 BTC → Alice (change)
Later, Alice spends her change by referencing this transaction's output #1.
Test Your Knowledge
This lesson includes a 5-question quiz (passing score: 75%).
Quiz functionality available in the mobile app.