Skip to main content

zks_getL2ToL1MsgProof RPC Method (deprecated)

Returns the proof for a message sent via the L1Messenger system contract, given a block, sender, message, and an optional message log index containing the L1->L2 message.

Updated on
Sep 22, 2026
Please note that this method is deprecated and is no longer supported on zkSync networks. Use zks_getL2ToL1LogProof instead.

Parameters

block
integer
REQUIRED

The number of the block where the message was emitted

sender
string
REQUIRED

The sender of the message

msg
string
REQUIRED

The keccak256 hash of the sent message

l2_log_position
string

The index in the block of the event that was emitted by the L1Messenger when submitting this message

Returns

id

The position of the leaf in the Merkle tree of L2->L1 messages for the block

proof

The Merkle proof for the message

root

The root hash representing the Merkle tree root at the time the L2 to L1 log was generated

Request
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