Skip to main content

Try it Live

Run Opcode examples in the interactive playground

Opcode.pushBytes()

Get number of immediate bytes for PUSH opcode.

Parameters

  • opcode: BrandedOpcode - Opcode to check

Returns

number | undefined - Byte count (0-32) or undefined if not PUSH

PUSH Byte Counts

Use Cases

Skip PUSH Data During Parsing

Validate PUSH Data