Opcodes · splice · enabled
OP_SPLIT (0x7f)
Splits a byte string at position n into two items. It took over the byte of the disabled OP_SUBSTR and replaces OP_SUBSTR, OP_LEFT and OP_RIGHT.
Verified
- Stack in → out
- x n → x[0..n) x[n..)
- Cost
- Base instruction cost 100 plus the bytes of both pushed parts (2025 VM limits).
- Bitcoin status
- Not in Bitcoin (BTC)0x7f is the disabled OP_SUBSTR in BTC; an OP_SUCCESS code in Tapscript.
Example
<0x112233> OP_1 OP_SPLIT Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.