Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why claim txs are not free now? #2085

Closed
3for opened this issue May 9, 2023 · 2 comments
Closed

Why claim txs are not free now? #2085

3for opened this issue May 9, 2023 · 2 comments
Assignees

Comments

@3for
Copy link

3for commented May 9, 2023

After Remove claim txs #2048, when start the l2 network with no l2 users, I want to know how can we get the l2 balance for claim tx for the very first time? Or do we need to have some balance in the l2 genesis block for claim txs?
Or is it just for upgrade, the node before already ran with free claim txs?

@ARR552
Copy link
Contributor

ARR552 commented Jun 6, 2023

Hello, good question. Since the claim txs are not free anymore, the process to have funds in L2 at the beginning is a bit more tricky but more secure on the other hand.
There are two scripts on the bridge repo that can help you. The first one just do a deposit in L1 (https://github.com/0xPolygonHermez/zkevm-bridge-service/tree/develop/test/scripts/deposit).
The second script will create the claim tx (https://github.com/0xPolygonHermez/zkevm-bridge-service/tree/develop/test/scripts/initialClaim). This claim tx will be included into a forcedBatch and the forcedBatch will be sent to L1. Doing it in this way the node is forced to process the free claim tx.
My recomendation is that the initial claim should be used to include funds in the autoclaim account and from there, all L2 claims should be done by the bridge service

@ARR552 ARR552 closed this as completed Jun 6, 2023
@3for
Copy link
Author

3for commented Jun 7, 2023

Thanks @ARR552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants