Layer 2 Blocks - StarkNet
Transaction Cost in StarkNet
Generally, a transaction’s cost depends on several factors:Source
- Data - the amount of data sent to L1
- Cost of computation
- Storage cost
- L2 network transmission cost for the transaction
In this dashboard, we are going analyze Starknet Blocks. The main questions to answer in this dashboard is that how many layer2 StarkNet blocks have been accepted on Ethereum (L1) chain so far? and how much fees have been paid to Ethereum network? Has StarkNet contributed to saving in transaction fees for its users?
Introduction
StarkNet is a permissionless decentralized ZK-Rollup. It operates as an L2 network over Ethereum, enabling any dApp to achieve unlimited scale for its computation – without compromising Ethereum's composability and security.
Each StarkNet block is registered on ethereum blockchain by means of a transaction emanating from the StarkNet operator to StarkNet core contract
The Fees Paid for all L2 blocks registration on L1 shows all fees that paid for registering L2 blocks to l1 and Fees Paid for all transactions from StarkNet operator contract to StarkNet core contract shows all fees of transactions StarkNet operator interacts with StarkNet core contract
- It seems that at the beginning of network launch, many blocks have been created.
- We can see that when count of transactions in each block increases, the transaction cost (L1 Fee) per each transaction decreases.
Conclusion
- Paid fee amount on L1 depends on several factor such as network traffic on L1, Volume of L2 block ,...
- In this report, number of transactions per block examined and it shows that the more transaction we have per block, the less fee we pay per L2 transaction on L1.
- The more Starknet manages to balance this parameter, the more saving transaction fees for its users.