Get the current blob base fee for EIP-4844 blob transactions
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:0x4AIntroduced: 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:
(none)
Stack Output:
blob_base_fee (wei as u256)
Gas Cost: 2 (GasQuickStep)Operation:
stack.push(block.blobBaseFee)
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:
Blob Base Fee: 1 wei (minimum)In wei: 1As u256: 0x1During congestion: Can increase significantly
The blob base fee adjusts based on blob usage in the parent block using a similar algorithm to EIP-1559 but with different parameters:
Target: 3 blobs per blockMaximum: 6 blobs per blockFormula: blob_base_fee = fake_exponential( MIN_BLOB_GASPRICE, // 1 wei excess_blob_gas, BLOB_BASE_FEE_UPDATE_FRACTION // 3338477)
// Pre-Cancun: Only calldata available// Expensive for data-heavy operations// L2s paid high costs for data availability
Post-Cancun (Proto-Danksharding)
// Post-Cancun: Separate blob data market// Dramatically cheaper for L2 data posting// Base fee starts at 1 wei, increases with demand// Target: 3 blobs/block, Max: 6 blobs/block