OP_NIP

(119 | 0x77)

Input

2 items

|

Output

1 items

OP_NIP is a selective stack manipulation opcode that removes the second-to-top item from the stack, leaving the top item intact. This opcode is useful in scenarios where the script needs to discard an intermediate calculation or value that is no longer needed for the remaining operations, thereby streamlining the script execution process.

OP_Code Walkthrough

Removes the second-to-top stack item.

Pop Top Item 1

Pop Top Item 2

Push Item 1