Opcodes · arithmetic · enabled
OP_MUL (0x95)
Multiplies the top two numbers. Disabled in Bitcoin since 2010 and re-enabled on BCH in May 2022 with 64-bit integers; BigInt (2025) removed the 64-bit cap.
Verified
- Stack in → out
- a b → a×b
- Cost
- Base instruction cost 100, plus twice the result length, plus the product of the two input lengths to cover O(n²) work (2025 VM limits).
- Bitcoin status
- Disabled in Bitcoin (BTC)Disabled since 2010; an OP_SUCCESS code in Tapscript.
Example
OP_3 OP_4 OP_MUL OP_12 OP_EQUAL Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.