Cointime

Download App
iOS & Android

Blob Usage Strategies by Rollups and Non-rollup Applications

From ethresear.ch by doublespending

TDLR

  1. The main applications using blobs are rollups, accounting for approximately 87%. Non-rollup applications mainly include Blobscriptions and customized type 3 transactions.
  2. Rollup applications choose different blob usage strategies according to their own situations. The strategies will consider the number of blobs carried by type 3 transactions, blob utilization, and blob submission frequency to balance the costs of availability data fees and delay costs.
  3. Non-rollup applications can be characterized and distinguished from rollup applications by the number of blobs carried by type 3 transactions, blob utilization, and blob submission frequency. These features help identify scenarios of blob abuse, allowing for the design of corresponding anti-abuse mechanisms.
  4. In most cases, using blobs as a data availability solution is more cost-effective than calldata. However, there are a few scenarios where calldata is cheaper: blob gas price spikes and blob utilization is extremely low.
  5. Short-term fluctuations in blob gas price is mainly influenced by the demand from non-rollup applications. Rollup applications have a relatively inelastic demand for blobs, so they do not significantly impact short-term fluctuations in blob gas prices.
  6. Currently, rollup applications do not seem to consider blob gas price as a reference factor in their blob usage strategies.
  7. The probability of blocks containing type 3 transactions being reorganized is extremely low. Additionally, carrying more blobs does not increase the probability of block reorganization. However, there is a clustering phenomenon in block height for blocks containing type 3 transactions.

Introduction

This report provides an in-depth analysis of type 3 transactions used for carrying blobs from the time of the Ethereum Decun upgrade until May 22, 2024. It focuses on blob usage strategies of rollup and non-rollup applications. The dataset, data processing programs, and visualization code for this report are open source, detailed in the following “Dataset” section.

Type 3 Transactions & Blobs Share by Applications

image1462×770 137 KB

Rollup Applications

Observations from Figure 1 on the proportion of type 3 transactions:

  • Base, Scroll, Linea, and Starknet are in the same tier, having the highest transaction proportions.
  • Arbitrum, Optimism, and Zksync are in the next tier, having the second-highest transaction proportions.

This phenomenon seems counterintuitive as Arbitrum and Optimism have higher TPS than Scroll, Linea, and Starknet and should have a higher proportion of type 3 transactions.

Figure 2 shows that counterintuitive phenomenon is caused by different rollup strategies in the number of blobs carried by type 3 transactions.

Observations from Figure 2 on the proportion of blobs:

  • Base stands alone, having the highest proportion of blobs.
  • Arbitrum and Optimism are in the same tier, having the second-highest proportion of blobs.
  • Scroll, Linea, Starknet, and Zksync are in the same tier, having a medium proportion of blobs.

This phenomenon aligns more with intuition: blob proportions are directly related to the scale of rollup’s availability data, thus showing a positive correlation with rollup TPS.

The difference between the proportion of type 3 transactions (31%) and blobs (14%) for non-rollup applications indicates that non-rollup applications and rollup applications have different needs.

Non-Rollup Applications

  • Rollup applications are B2B businesses aiming to fill fine-grained Layer 2 transaction availability data, so their type 3 transactions are not limited to carrying only 1 blob.
  • Non-rollup applications are B2C businesses aiming to upload complete text, images, etc., so their type 3 transactions usually carry only 1 blob to meet their needs.

Rollup Blob Usage Strategies

Rollup Strategy Model

This section models the rollup blob usage strategies with

  1. blobNumber, i.e. the number of blobs carried by type 3 transactions
  2. blobUtilization, i.e. blob space utilization
  3. blobInterval, i.e. the blob submission interval

Fee Cost

The fee cost per transaction for rollups is expressed as:

feeCost=1k(blobCostblobUtilization+fixedCostblobNumber∗blobUtilization)

  • fixedCost: the fixed cost of a type 3 transaction
  • blobCost: the cost of a single blob
  • The larger the blobUtilization, the lower the amortized cost of the blob fee blobCostblobUtilization and the fixed cost fixedCostblobNumber∗blobUtilization, resulting in a lower fee cost feeCost.
  • The larger the blobNumber, the lower the amortized cost of the fixed cost fixedCostblobNumber∗blobUtilization, resulting in a lower fee cost feeCost.

Delay Cost

The delay cost per transaction for rollups is expressed as:

delayCost=F(blobNumber∗blobUtilization∗ktps)

  • The larger the blobUtilization, the larger the delay cost delayCost.
  • The larger the blobNumber, the larger the delay cost delayCost.
  • The larger the tps, the smaller the delay cost delayCost.

The derivation of the formula can be found in the full version 3.

Rollup Strategy Analysis

image2366×894 374 KB

image1272×1108 138 KB

Non-Rollup Blob Strategies

Rollup applications are B2B, while non-rollup applications are B2C. Therefore, non-rollup applications differ from the rollup strategy model. For non-rollup applications:

  • The number of blobs carried by type 3 transactions depends on the size of the content (texts/images) stored in the blobs.
  • Blob utilization depends on the size of the content (texts/images) stored in the blobs.
  • Blob submission intervals depend on the immediate needs of C-end users, with no delay costs involved.

image2366×894 374 KB

  • According to Figure 5 (Others ), 1 blob can meet the needs of most non-rollup applications.
  • According to Figure 6 (Others ), the blob utilization is concentrated between 20% and 40%, indicating that non-rollup applications generally cannot fill the blob, with the data size mainly between 25.6 kB and 51.2 kB.
  • According to Figure 7 (Others ), about 83% of blobs have a submission interval of less than 1 minute, indicating a relative high frequency of user demand for non-rollup applications.

In summary, the type 3 transactions for non-rollup applications can be characterized as: high-frequency transactions carrying 1 low-utilization blob .

The essence of this characterization is that non-rollup applications are driven by immediate needs and are less concerned about the fee cost per data byte compared to rollup applications.

This characterization allows for the identification of non-rollup applications, which in turn helps design mechanisms to limit blob abuse by non-rollup applications.

Is Using Blobs Always More Cost-effective than Calldata?

Introducing feeRatio to measure the relative advantages of the two solutions:

feeRatio=calldataFeeCostblobFeeCost

  • When feeRatio ≥ 1, it indicates that using blobs as a data availability solution is not worse than calldata.
  • When feeRatio < 1, it indicates that using blobs as a data availability solution is worse than calldata.

image1012×1070 161 KB

Figure 8 also shows a few cases where feeRatio < 1 (red), indicating that calldata is more cost-effective than blobs:

  • Mostly in non-Rollup applications (Others):Non-rollup applications generally do not care about the cost differences between blobs and calldata; they care about using blobs itself, such as in Blobscriptions.
  • Non-rollup applications generally do not care about the cost differences between blobs and calldata; they care about using blobs itself, such as in Blobscriptions.
  • A few in Metal rollup:Rollup application Metal seems not to have considered switching between blobs and calldata in its strategy, leading to suboptimal choices in some extreme cases.Extreme cases are mainly due to Metal’s low blob utilization (see Figure 6) coinciding with a spike in blob gas prices.However, given that extreme scenarios are rare and maintaining two data availability solutions is costly, Metal’s suboptimal strategy in extreme cases seems acceptable.
  • Rollup application Metal seems not to have considered switching between blobs and calldata in its strategy, leading to suboptimal choices in some extreme cases.
  • Extreme cases are mainly due to Metal’s low blob utilization (see Figure 6) coinciding with a spike in blob gas prices.
  • However, given that extreme scenarios are rare and maintaining two data availability solutions is costly, Metal’s suboptimal strategy in extreme cases seems acceptable.

The analysis of blob and calldata solutions in this section only considers fee costs and not delay costs. Considering delay costs, calldata has an actual advantage.

Blob Gas Price and Blob Usage Strategies

Analysis of Blob Gas Price Fluctuations

image1456×768 160 KBFigures 9 and 10 show that in scenarios of high blob gas prices (> 10), the proportion of non-rollup applications (Others) is significantly higher than in scenarios of low blob gas prices (< 10).

Therefore, it can be concluded that the surge in blob gas prices is mainly driven by the demand from non-rollup applications, rather than rollup applications. Otherwise, the proportion of rollup and non-rollup applications should remain stable.

How Rollups Respond to Blob Gas Price Fluctuations

Hypothesis 1: The higher the blob gas price, to reduce fee costs, applications should carry more blobs in type 3 transactions, i.e., the number of blobs should be positively correlated with blob gas prices.

image1520×1502 168 KB

Figure 14 shows that the hypothesis does not hold.

Hypothesis 2: The higher the blob gas price, to reduce fee costs, applications should increase blob utilization, i.e., blob utilization should be positively correlated with blob gas prices.

image1432×1436 133 KB

Figure 15 shows that the hypothesis does not hold.

Hypothesis 3: The higher the blob gas price, to reduce fee costs, applications should delay blob submissions, i.e., blob submission intervals should be positively correlated with blob gas prices.

image1538×1494 211 KB

Figure 16 shows that the hypothesis does not hold.

In Figures 9 and 10, readers might notice that some rollup applications seem to respond to high blob gas prices. Scroll seems to suspend blob submissions under high blob gas prices. However, this conclusion is incorrect. The reason is that not all rollups immediately used blobs after the EIP-4844 upgrade.

Blobs and Block Reorg

From the Decun upgrade to May 22, there were 171 type 3 transactions included in the forked blocks and 348,121 included in the canonical blocks. Therefore, the proportion of type 3 transactions being forked is approximately 0.049%. This section explores the relationship between block reorg and blob.

Blob Number Distribution in the Canonical and Forked Blocks with Blobs

image1462×854 105 KB

Hypothesis: More blobs increase the probability of block reorganizations.

If the hypothesis holds, the following inequality should be satisfied:

P(reorg|blob=n)>P(reorg|blob=n−1)

According to Bayes’ theorem, inequality above is equivalent to:

P(blob=n|reorg)P(blob=n)>P(blob=n−1|reorg)P(blob=n−1)

We check whether the actual data satisfies inequality and obtain the following table:

image1280×374 68.8 KB

The table above shows that equation (10) does not hold for all n. Therefore, the hypothesis does not hold, indicating that more blobs are not significantly related to block reorganizations.

Distribution of Type 3 Transactions and Blobs by Applications in the Canonical and Forked Blocks with Blobs

image1512×1776 113 KBFigures 18 and 19 show that the proportion of type 3 transactions/blobs for Zksync and Scroll in forked blocks is significantly higher than in the canonical blocks.

Applications seem to have some connection with block reorganizations, possibly related to differences in blob usage strategies by applications:

  • Zksync and Scroll are less strategic in selecting the timing of submitting type 3 transactions, targeting block heights prone to reorganization.
  • The unique characteristics of Zksync and Scroll’s type 3 transactions make the blocks containing them more likely to be reorganized.

Clustering Phenomenon of Forked Blocks with Blobs

image1488×618 135 KBIf each block has the same probability of being reorganized, the forked blocks should be evenly distributed across the block height range. However, Figure 20 shows a clustering phenomenon in block heights for forked blocks, possibly related to network conditions.

In addition, the clustering phenomenon that occurs in block reorganization seems to be somewhat related to the applications that submit blobs. For example, type 3 transactions for non rollup applications are only included in forked blocks between 19500000 and 19600000.

Comments

All Comments

Recommended for you

  • Cross border payments: Citi spotlights DLT. FSB reports on G20 progress

    During the past week Citi and the Financial Stability Board (FSB) have published separate reports on cross border payments. Both papers explore G20 targets for improving cross border payments. Unfortunately, 2024 speed figures were worse than 2023 for wholesale, retail and remittance payments, largely reflecting more accurate data. Citi’s report highlights that fintechs expect to gain 10% in market share from banks in the next two to five years. Its survey shows that DLT is one tool to address the pain points, but more in the medium term.

  • Stablecoin agents will onboard billions of Africans to the global economy

    Think back to your first time using crypto. How would you review your experience? If you were an early adopter, maybe you found the experience confusing and jargon-heavy, the irreversible nature of transactions deathly terrifying, or even all of the above. With that thought in mind, would it surprise you to learn that the reviews above are from everyday Africans using crypto?

  • Permissionless bridging is now live

    Uniswap users can now bridge across nine networks directly from the Uniswap Interface and Uniswap Wallet. In-app bridging is one of our most requested features, and we’re excited to roll it out as a step toward our long-term vision of cross-chain swaps.

  • SUI breaks above $2

    market shows SUI breaking through $2 and currently trading at $2.01, with a 24-hour increase of 7.49%. The market is volatile, so please manage your risks.

  • ERC-7777: Proposal for Human Robot Societies

    Alliance is the leading crypto accelerator and founder community. We receive over 3,000 applications every year from the best crypto startups looking to join our accelerator program. Our accelerator program runs twice a year and thus we report our data in halves.

  • AI DAOs, and Three Paths to Get There

    DAOs have arrived. When artificial intelligence (AI) gets added to the mix, the results are explosive. I was about ten years old when I stumbled across a book on artificial intelligence (AI). It riveted me. The profound implications sunk in. I’ve been passionate about ever it since. I spent nearly twenty years as a professional AI researcher. Three years ago, I stepped out of the AI world to work on something just as important: decentralization. These worlds will collide, soon.

  • Web3 data and AI company Validation Cloud completes $10 million in new round of financing

     Web3 data and AI company Validation Cloud announced a $10 million financing round from True Global Ventures. The company plans to use the funds to expand its AI products and achieve seamless access to Web3 data.

  • STRK falls below $0.4

     market showed that STRK fell below $0.4 and is now reporting at $0.39, with a 24-hour decline of 4.88%. The market is fluctuating greatly, so please be prepared for risk control.

  • BTC falls below $67,000

    market shows BTC has fallen below $67,000, currently reporting at $66,987.51, with a 24-hour increase of 0.41%. The market is experiencing significant fluctuations, please be prepared for risk control.

  • BTC breaks through $67,000

    the market shows BTC has broken through $67,000 and is currently trading at $67,011.99, with a 24-hour decline of 0.26%. The market is volatile, so please be prepared to manage risks.