layer2 StarkNet blocks

    Analyze layer 2 starknet blocks and saved fee

    1. introduction

    what is starknet?

    StarkNet is a ZK-Rollup-based Layer 2 network that allows decentralized applications to achieve scalability while maintaining the security of Ethereum core network.

    3. Method

    1. for counting number of accepted blocks, we count every transaction from the StarkNet operator: 0x2C169DFe5fBbA12957Bdd0Ba47d9CEDbFE260CA7 to StarkNet core contract: 0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4 with ORIGIN_FUNCTION_SIGNATURE='0x77552641'
    2. the generated fee is the sum of all fees that they must pay to for accepting blocks on Ethereum, we get the fee data from ethereum.core.fact_transactions table
    3. we choose a weekly interval to present change of the stats over time
    4. for saved fees, I calculated these parameters:

    A. the average count of TX that each block have, and I used tokenflow_starknet.decoded.blocks table

    B. Average TX_FEE of mainnet over specific random time (I have chosen BETWEEN '2022-06-20' AND '2022-06-26') and I Used ethereum.core.fact_transactions table for this

    C. from the above data, we calculated the total fee that we had to pay if our transactions were on mainnet

    (average count of TX) * (Number of blocks) * (Average TX_FEE of mainnet)= ETH_FEE

    if we subtract the generated fee from ETH fee, we get amount of fee that get saved

    saved_fee = ETH_fee - generated_fee

    Loading...
    Loading...
    Loading...

    We have big jump in may due to market condition

    Loading...

    The users saved 142 ETH by using starknet layer 2

    4. conclusion

    1- number of blocks that were accepted on Ethereum (L1) chain is, 2054

    2- total fees that have been paid (generated) to Ethereum network is, 32.3 ETH

    3- the market condition also play important role in our stats

    4- with starknet layer 2, Users saved about 142 ETH Fee

    2. Questions

    1. How many layer2 StarkNet blocks have been accepted on Ethereum (L1) chain so far?
    2. How much fees have been paid (generated) to Ethereum network?
    3. Has StarkNet contributed to saving in transaction fees for its users?