Try it Live
Run Opcode examples in the interactive playground
Opcode.isValidJumpDest()
Check if offset is a valid JUMPDEST in bytecode.- Functional API
Parameters
bytecode: Uint8Array- Contract bytecodeoffset: number- Program counter offset to check
Returns
boolean - True if offset is valid JUMPDEST
Validation Rules
Valid JUMPDEST must:- Be within bytecode bounds
- Be JUMPDEST opcode (0x5B)
- NOT be inside PUSH immediate data
Use Cases
Runtime Jump Validation
Find Invalid Jumps
Related
- jumpDests() - Find all JUMPDESTs
- isJump() - Check if JUMP/JUMPI

