Opcodes · push · enabled

OP_PUSHDATA2 (0x4d)

The next two bytes (little-endian) give a length; that many following bytes are pushed. Needed for pushes over 255 bytes.

Verified
Stack in → out
∅ → data
Since
Original Bitcoin script
Cost
Base instruction cost 100 plus bytes pushed. Since 2025 the stack item limit is 10,000 bytes (was 520).
Bitcoin status
Same in Bitcoin (BTC)BTC keeps the 520-byte stack item limit.
Also known as
OP_PUSHDATA_2

Example

OP_PUSHDATA2 0x0001 <256 bytes>

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)
  2. CHIP-2021-05 VM Limits: Targeted Virtual Machine Limits