Try it Live
Run Opcode examples in the interactive playground
Opcode.pushBytes()
Get number of immediate bytes for PUSH opcode.- Functional API
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
Related
- isPush() - Check if PUSH opcode
- pushOpcode() - Get PUSH opcode for length

