Opcodes · stack · enabled
OP_2ROT (0x71)
Moves the fifth and sixth items to the top.
Verified
- Stack in → out
- a b c d e f → c d e f a b
- Since
- Original Bitcoin script
- Cost
- Base instruction cost 100 plus bytes pushed (2025 VM limits).
- Bitcoin status
- Same in Bitcoin (BTC)
Example
OP_1 OP_2 OP_3 OP_4 OP_5 OP_6 OP_2ROT Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.