TeachMeBitcoin

Standard Script Types

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Standard Script Types

While Bitcoin Script is flexible, most nodes will only relay "Standard" transactions. There are five main types of ScriptPubKey patterns used today.

1. P2PKH (Pay-to-Public-Key-Hash)

The most common legacy format (Addresses starting with 1).

2. P2SH (Pay-to-Script-Hash)

Used for Multi-sig and SegWit (Addresses starting with 3).

3. P2WPKH (Pay-to-Witness-Public-Key-Hash)

Native SegWit (Addresses starting with bc1q).

4. P2TR (Pay-to-Taproot)

The latest upgrade (Addresses starting with bc1p).

Summary Table

Type Script Pattern (Simplified) Address Prefix
P2PKH 76a914...88ac 1
P2SH a914...87 3
P2WPKH 0014... bc1q
P2TR 5120... bc1p

In the next section, we will discuss the special OP_RETURN script used for data.

☕ 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!