Skip to main content

Parameters

chainId
string
default:"2741"
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_getL2ToL1LogProof"
required
JSON-RPC method name.
params
object
required
Positional parameters for zks_getL2ToL1LogProof:
  • params[0]: The hash of the L2 transaction.
  • params[1]: The index of the L2 to L1 log in the transaction.

Returns

result
object
The JSON-RPC result.