StarkNet - Layer 2 Blocks

    In this dashboard we will look at the the Layer2 Blocks being added to the Ethereum Mainnet from the StarkNet.

    When a Layer2 block is accounted for on Ethereum Mainnet by the StarkNet, its done via a UpdateState transaction that involves messages being bridged to L1 and logs being emitted. For every message being passed an event LogMessageToL1 is emitted, with the topic id 0x4264ac208b5fde633ccdd42e0f12c3d6d443a4f3779bbf886925b94665b63a22. When a block is added, a LogStateUpdate event is emitted, with topic id 0xe8012213bb931d3efa0a954cfb0d7b75f2a5e2358ba5f7d3edfb0154f6e7a568. As the data on Flipside Database is undecoded, we can use the hex_to_int and substr functions to decode this data.

    Let us look at the overall stats.

    So far from StarkNet 2865 blocks have been added, at a spend of 50 ETH.

    Loading...

    The table below shows all the blocks added so and the transaction in which they were added and the gas expenditure for each.

    Let us look some Block based statistics.

    Loading...

    Let us look at some daily metrics.

    Looking at ETH and GAS units spent per block:

    • Mostly, almost 90% of the blocks required less than 0.03 ETH
    • Only days of extreme activity, like the May 10th crash or the more recent slump to 900$ ETH saw expensive block productions
    • GAS units, on the other hand are everywhere. This could be because more GAS is required only when there is more activity on StarkNet. With lack of dapps on StarkNet, the necessity is pretty low for blockspace.
    Loading...

    Looking at the Blocks added everyday,

    • 12 is the most common number daily
    • A block every 2 hours seems to be the optimum working condition of StarkNet.
    • May 10 crash saw quite alot of activity across Mainnets everywhere, hence StarkNet also saw the ripple effect.
    Loading...

    Looking at daily ETH paid for block production:

    • Most days in Q1 2022 saw sub 0.3 ETH paid in gas
    • Between March and April, the fees was less than 0.1 ETH daily
    • Only the volatility post May 10 bought the fees higher than 1 ETH.
    Loading...

    Looking at daily Gas Units spent :

    • Most days we see a consistent 150 to 200 Million Units being spent
    • Only the May 10 crash sent spikes on the Gas Units
    • Hence in most case, the ETH expenditure is purely from the BlockSpace expenditure on Mainnet, i.e GAS expenditure to get the transaction into the block at the earliest
    Loading...

    Looking at the LogMessageToL1 logs on the daily basis:

    • We can see a slight correlation between the Messages being received to the ETH expenditure and Blocks added
    • The spikes in Message events coincide with spikes in Blocks and ETH expense
    • We can conclude that activity on the layer 2 itself is a factor in ETH expenditure
    Loading...
    Loading...