layer2 StarkNet blocks
Analyze layer 2 starknet blocks and saved fee
3. Method
- 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'
- 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
- we choose a weekly interval to present change of the stats over time
- 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
The users saved 142 ETH by using starknet layer 2