> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# pushOpcode()

> Get PUSH opcode for given byte count

<Card title="Try it Live" icon="play" href="https://playground.tevm.sh?example=primitives/opcode.ts">
  Run Opcode examples in the interactive playground
</Card>

## Opcode.pushOpcode()

Get PUSH opcode for given byte count.

<Tabs>
  <Tab title="Functional API">
    ```typescript theme={null}
    import { pushOpcode } from 'tevm/Opcode'

    const op = pushOpcode(1)   // 0x60 (PUSH1)
    ```
  </Tab>
</Tabs>

## Parameters

* `byteCount: number` - Number of bytes to push (1-32)

## Returns

`BrandedOpcode` - Corresponding PUSH opcode

## Throws

* Error if byteCount \< 1 or > 32

## Related

* [isPush()](/primitives/opcode/is-push) - Check if PUSH opcode
* [pushBytes()](/primitives/opcode/push-bytes) - Get PUSH data length
