Skip to main content

Parameters

chainId
string
default:"11124"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"zks_getL2ToL1MsgProof"
required
JSON-RPC method name.
params
object
required
Positional parameters for zks_getL2ToL1MsgProof:
  • params[0]: The block number in which the message was emitted.
  • params[1]: The address that sent the message.
  • params[2]: The keccak256 hash of the message being proved.
  • params[3]: Optional index in the block of the L1Messenger event log. Defaults to the first message if omitted.

Returns

result
object
The JSON-RPC result.