Opcodes · stack · enabled
OP_DUP (0x76)
Duplicates the top item. Most famous as the first step of a P2PKH lock.
Verified
- Stack in → out
- x → x x
- Since
- Original Bitcoin script
- Cost
- Base instruction cost 100 plus bytes pushed (2025 VM limits).
- Bitcoin status
- Same in Bitcoin (BTC)
Example
OP_DUP OP_HASH160 <pkh> OP_EQUALVERIFY OP_CHECKSIG Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.