Try it Live
Run Opcode examples in the interactive playground
Opcode.pushOpcode()
Get PUSH opcode for given byte count.- Functional API
Parameters
byteCount: number- Number of bytes to push (1-32)
Returns
BrandedOpcode - Corresponding PUSH opcode
Throws
- Error if byteCount < 1 or > 32
Related
- isPush() - Check if PUSH opcode
- pushBytes() - Get PUSH data length

