Alchemy Logo

zks_getBytecodeByHash

POST
/{apiKey}

Retrieves the bytecode of a transaction by its hash.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^0x[0-9a-f]{64}$"required

The hash of the transaction.

Responses

200

Array of the transaction's bytecode.

Array of bytes representing the bytecode.

Was this page helpful?