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

# zks_getBytecodeByHash

> Returns the bytecode of a transaction for the provided hash.

### Parameters

<ParamField query="chainId" type="string" default="11124" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="zks_getBytecodeByHash" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"]} placeholder="[&#x22;0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc&#x22;]" required>
  Positional parameters for <code>zks\_getBytecodeByHash</code>:

  <ul>
    <li><code>params\[]</code>: The hash of the bytecode to retrieve.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  The bytecode array representing the transaction's bytecode.

  <Expandable title="items">
    <ResponseField name="items[]" type="integer" />
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=11124 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "zks_getBytecodeByHash",
      "params": [
        "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      0,
      4,
      0,
      0,
      "..."
    ]
  }
  ```
</ResponseExample>
