Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 539 Bytes

File metadata and controls

35 lines (28 loc) · 539 Bytes

OP_2

:::info Opcode number: 82
Byte representation: 0x52
Other names: OP_PUSHNUM_2
Short Description: Push the number 2 onto the stack.
:::

The OP_2 opcode will push 0x02 onto the stack. This opcode uses the minimally encoded integers format.

Examples

Example 1

# ASM script
OP_2 OP_2

# Raw script
5252

# Final stack
2
2

Example 2

# ASM script
OP_2 OP_2 OP_ADD

# Raw script
525293

# Final stack
4