API Reference

zks_getBytecodeByHash

Returns bytecode of a transaction given by its hash.

Example

Request

curl --location --request POST 'https://zksync-era-mainnet.unifra.io/v1/your-api-key' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBytecodeByHash", "params": [ "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc" ]}'

Result

{ "jsonrpc": "2.0", "result": [ 0, 4, 0, 0, 0, 0, 0, 2, 0, 11, ..., ..., ], "id": 1 }
Path Params
string
required
Body Params
string
Defaults to 2.0
string
Defaults to zks_getBytecodeByHash
params
array of strings
Defaults to 0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc
params
string
Defaults to 1
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json