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:Behavior
BLOBBASEFEE pushes the blob base fee onto the stack as a 256-bit unsigned integer in wei: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 gasBASEFEE: 2 gasBLOBHASH: 3 gasGASLIMIT: 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
- TypeScript
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)
- 2 gas per query
- ~500,000 queries per million gas
Related Instructions
- BLOBHASH (0x49) - Get blob hash by index
- BASEFEE (0x48) - Get execution base fee
- GASLIMIT (0x45) - Get block gas limit
References
- EIP-4844 - Shard Blob Transactions
- EIP-7516 - BLOBBASEFEE opcode
- Yellow Paper - Section 9.3
- EVM Codes - BLOBBASEFEE
- Proto-Danksharding FAQ

