Skip to main content

zks_getL2ToL1MsgProof RPC Method

Loading...

Updated on
Feb 17, 2026

zks_getL2ToL1MsgProof RPC Method

Please note that this JSON-RPC method will be deprecated in favor of zks_getL2ToL1LogProof.

Parameters

block
integer
REQUIRED
Loading...
sender
string
REQUIRED
Loading...
msg
string
REQUIRED
Loading...
l2_log_position
string
Loading...

Returns

id
Loading...
proof
Loading...
root
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_getL2ToL1MsgProof",
6
"params": [
7
5187,
8
"0x87869cb87c4Fa78ca278dF358E890FF73B42a39E",
9
"0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"
10
],
11
"id": 1
12
}'
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_getL2ToL1MsgProof",
6
"params": [
7
5187,
8
"0x87869cb87c4Fa78ca278dF358E890FF73B42a39E",
9
"0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"
10
],
11
"id": 1
12
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x0"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x0"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free