OP_MIN

(163 | 0xa3)

Input

2 items

|

Output

1 items

OP_MIN performs a similar function to OP_MAX but in reverse. It assesses the top two numerical values on the stack, popping them off for comparison. The opcode then pushes the smaller of these two values back onto the stack. This operation is particularly useful in scripts that require determination of minimum thresholds or limits, such as in scripts that enforce minimum payment amounts or other conditional logic based on numerical values.

OP_Code Walkthrough

Pushes the smaller of the top two items on the stack onto the stack.

Pop Top Item

Pop Next Top Item

Push Minimum of Two Items