Opcodes · push · enabled
OP_2 (0x52)
Pushes the number 2. The one-byte form is required when pushing 2 under minimal-push rules.
Verified
- Stack in → out
- ∅ → 2
- Since
- Original Bitcoin script
- Cost
- Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
- Bitcoin status
- Same in Bitcoin (BTC)
Example
OP_2 OP_2 OP_EQUAL Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.