---
title: "zks_getBytecodeByHash"
method: POST
path: "/zks_getBytecodeByHash"
tags: ["ZKSync API"]
---

# zks_getBytecodeByHash

`POST /zks_getBytecodeByHash`

Retrieves the bytecode of a transaction by its hash

## Request body

- object
  - `jsonrpc` string, required — JSON-RPC version
  - `method` string, required — The RPC method to be invoked
  - `id` integer, required — Request identifier
  - `params` unknown[], required — Parameters for retrieving bytecode
    - unknown

## Response `200`

Returns an array of the transaction's bytecode

- BytecodeByHashResponse — unresolved $ref

---

[API](https://skmtc.dev/abs/apis/abstract-json-rpc-api.md) · [All operations](https://skmtc.dev/abs/apis/abstract-json-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/abs/abstract-json-rpc-api/revisions/65e951da6380/schema)
