Skip to main content
This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.

Overview

Opcode: 0x4A Introduced: Cancun (EIP-7516, part of EIP-4844) BLOBBASEFEE retrieves the base fee per blob gas for the current block. This is part of the EIP-4844 blob fee market, enabling proto-danksharding by pricing blob data separately from execution gas.

Specification

Stack Input:
Stack Output:
Gas Cost: 2 (GasQuickStep) Operation:
Hardfork: Available from Cancun onwards (EIP-7516)

Behavior

BLOBBASEFEE pushes the blob base fee onto the stack as a 256-bit unsigned integer in wei:
The blob base fee adjusts based on blob usage in the parent block using a similar algorithm to EIP-1559 but with different parameters:

Examples

Basic Usage

Pre-Cancun Error

Blob Transaction Cost Calculation

Blob Fee Market Analysis

Gas Cost

Cost: 2 gas (GasQuickStep) BLOBBASEFEE is one of the cheapest operations, enabling efficient fee market interaction. Comparison:
  • BLOBBASEFEE: 2 gas
  • BASEFEE: 2 gas
  • BLOBHASH: 3 gas
  • GASLIMIT: 2 gas

Common Usage

Blob Fee Threshold

Dynamic Blob Strategy

L2 Data Posting Decision

Fee Market Monitoring

Blob vs Calldata Cost Comparison

Security Considerations

Fee Market Manipulation

Blob base fee follows algorithmic adjustment (cannot be directly manipulated):

Fee Volatility

Blob base fee can increase rapidly during congestion:

Separate from Execution Fees

Blob fees are independent of execution gas fees:

Minimum Fee Floor

Blob base fee has a minimum of 1 wei:

EIP-4844 Fee Mechanism

Blob Fee Adjustment Algorithm

Blob Gas Constants

Fake Exponential Function

Implementation

Edge Cases

Pre-Cancun Execution

Minimum Fee (1 wei)

High Congestion

First Cancun Block

Historical Context

Pre-Cancun (No Blobs)

Post-Cancun (Proto-Danksharding)

Benchmarks

Performance:
  • Hardfork check: O(1)
  • Stack push: O(1)
Gas efficiency:
  • 2 gas per query
  • ~500,000 queries per million gas

References