Skip to content

[General] How to Retrieve Proof Parameters for ETH Claim on L1 from zkSync Era? #812

Closed Answered by popzxc
mihailo-maksa asked this question in General
Discussion options

You must be logged in to vote

Hey @mihailo-maksa! Yes, there are APIs for that.
You can take a look at how fetching withdrawal parameters is implemented in zksync-ethers. Corresponding RPC method iszks_getL2ToL1LogProof.

Basically, what you need is to identify the log that corresponds to the withdrawal L2 -> L1 message on l2 and then retreive a proof for it.

One caveat you should be aware of is that there might be multiple withdrawals in a single transaction (which is why index needs to be passed in the function above).

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mihailo-maksa
Comment options

Comment options

You must be logged in to vote
3 replies
@mihailo-maksa
Comment options

@popzxc
Comment options

@mihailo-maksa
Comment options

Answer selected by popzxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
3 participants