dmihal / l2-fees

l2-fees.vercel.app
31 stars 16 forks source link

Add raw L1 gas cost per tx #7

Open stefment opened 2 years ago

stefment commented 2 years ago

For example zkSync uses about 400 L1 gas per transaction and optimistic rollups use about 4000 L1 gas per transaction. It could be interesting to know for people who are choosing a rollup or just starting out their research

sources: https://zksync.io/faq/tokens.html " for every zkSync block, the validator must pay Ethereum gas to verify the SNARK, plus additionally ~0.4k gas per transaction to publish the state"

https://community.optimism.io/docs/users/fees-2.0.html#frontmatter-title "l1GasUsed is calculated as 1.5*(2750 gas + calldataGas)"