We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Pay to public key hash
P2PKHThe ordinary payment. The lock names a key by its hash, and only that key can spend it.
What it is
A P2PKH output locks sats to the hash of a public key. A Bitcoin address is that hash, written in Base58Check with a version byte in front. To spend the output, the owner shows the full public key and signs the spending transaction with it.
Script pattern
-
OP_DUPCopies the public key the spender supplies. -
OP_HASH160Hashes the copy with SHA-256, then RIPEMD-160. -
<pubkey hash>20 bytes: the owner's key hash. This is the address. -
OP_EQUALVERIFYStops unless the two hashes match. -
OP_CHECKSIGChecks the spender's signature against the key.
25 bytes in all.
How it is spent
A signature and the public key whose hash is in the lock: <signature> <public key>.
Background
P2PKH has been the standard payment since Bitcoin's first release in 2009. Locking to a hash rather than the key itself keeps the key private until the first spend, and makes addresses shorter. Wallets use it for payments and for change, so it is the most common output on chain by far.
First seen and adoption
First seen in block 728, on 2009-01-16. Its first transaction is 6f7cf9580f1c2dfb3c4d5d043cdbb128c640e3f20161245aa7372e9666168516.
Counts cover blocks 0 to 169755, every one verified complete and typed; the highest block we know is 974915. Blocks 169756 to 312906 are complete and not typed yet. A transaction with several types counts once under each. First seen means first seen in that range.
| From block | Transactions |
|---|---|
| 0 | 43 |
| 10,000 | 34 |
| 20,000 | 66 |
| 30,000 | 113 |
| 40,000 | 402 |
| 50,000 | 5,026 |
| 60,000 | 13,104 |
| 70,000 | 14,828 |
| 80,000 | 14,326 |
| 90,000 | 67,075 |
| 100,000 | 63,058 |
| 110,000 | 135,799 |
| 120,000 | 245,742 |
| 130,000 | 529,858 |
| 140,000 | 478,103 |
| 150,000 | 391,619 |
| 160,000 | 432,245 |
On chain
- 89bd4ba8dbb45461c9d3364b17def0956cbbad05a1f87bc2691ae1215c0f1735 block 974,724
- 21652e6726ce33826f99d5ac1bb433bbd033fe1fa8cd2aa3d01c893de9088247 block 974,724
- e83afaad795f56185aa89b06e67ca1e2e465c004eed76474c6245fd016760143 block 974,724
- 57a8ba3b16c98f6af1811193debf44662f32f8a25173a94dc2d92aeab9212776 block 974,723
- 39e2a00f56143e9a44a7ad60df2f217008d41257fb6565c5b961e7893b138590 block 974,723
Transactions with an output of exactly this script shape, by template hash 09507a7ca50f… Transaction pages need sign-in.
Specification
- P2PKH on the Bitcoin SV wiki
- /api/v1/types/p2pkh
- /api/v1/txs?type=p2pkh every stored tx of this type, newest first, with an API key or signed in.