← All terms
Concepts
scriptPubKey
The "lock" on a UTXO — defines how it can be spent
Definition
The locking script attached to a UTXO output. Determines who can spend it and under what conditions. Common types: P2PKH (legacy 1...), P2SH (3...), P2WPKH (bc1q... 20-byte), P2WSH (bc1q... 32-byte), P2TR (bc1p... taproot).
Context anchor
~75% of current UTXOs are P2WPKH (modern bech32 addresses); P2TR adoption growing
Example
scriptPubKey 'OP_DUP OP_HASH160 ...' = standard P2PKH (legacy address)
Also known as
scriptpubkeyscript pubkeylocking script