Skip to main content

zks_getBytecodeByHash RPC Method

Loading...

Updated on
Feb 17, 2026

zks_getBytecodeByHash RPC Method

Parameters

hash
string
REQUIRED
Loading...

Returns

result
Loading...
Request
1
curl -X POST "https://docs-demo.zksync-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "zks_getBytecodeByHash",
6
"params": [
7
"0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"
8
],
9
"id": 1
10
}'
1
curl -X POST "https://docs-demo.zksync-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "zks_getBytecodeByHash",
6
"params": [
7
"0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"
8
],
9
"id": 1
10
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
0,
6
4,
7
0
8
]
9
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
0,
6
4,
7
0
8
]
9
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free