eth_blobBaseFee - Ethereum

This method returns the current blob base fee in wei, hex-encoded. Introduced with EIP-4844 (Dencun, March 2024), blob transactions carry their data-availability payload separately from calldata and are priced independently via blobGasPrice. Post-Fusaka (December 2025) and its BPO forks, blob capacity is 14 target / 21 max blobs per block. Rollups and any application posting blob-carrying transactions read this to price their data-availability spend.

Parameters

This method takes no parameters.

Request

bashcurl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_blobBaseFee",
    "params": [],
    "id": "getblock.io"
}'

example.js

javascriptconst axios = require('axios');

const response = await axios.post('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/', {
    jsonrpc: '2.0',
    method: 'eth_blobBaseFee',
    params: [],
    id: 'getblock.io'
}, {
    headers: { 'Content-Type': 'application/json' }
});

console.log(response.data.result);

example.py

pythonimport requests

response = requests.post(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/',
    headers={'Content-Type': 'application/json'},
    json={
        'jsonrpc': '2.0',
        'method': 'eth_blobBaseFee',
        'params': [],
        'id': 'getblock.io'
    }
)

print(response.json())

example.rs

rustuse reqwest::Client;
use serde_json::{json, Value};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    
    let response = client
        .post("https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/")
        .header("Content-Type", "application/json")
        .json(&json!({
            "jsonrpc": "2.0",
            "method": "eth_blobBaseFee",
            "params": [],
            "id": "getblock.io"
        }))
        .send()
        .await?
        .json::<Value>()
        .await?;
    
    println!("Result: {}", response["result"]);
    Ok(())
}

Response

json{
    "jsonrpc": "2.0",
    "result": "0x7ad94d",
    "id": "getblock.io"
}

Response Parameters

ParameterTypeDescription
jsonrpcstringJSON-RPC protocol version ("2.0")
idstringRequest identifier matching the request
resultstringHex-encoded blob base fee in wei per blob gas unit

Use Cases

  • L2 Rollup Cost Modeling: L2 sequencers price blob-posting cost before submitting compressed batches to L1
  • Blob Congestion Detection: Track the blob base fee to detect L2 batch-posting congestion or blob market spikes
  • Blob Transaction Pricing: Applications posting EIP-4844 blob transactions compute maxFeePerBlobGas bids based on this floor
  • Data Availability Analytics: Research and dashboards tracking DA spend across the rollup ecosystem

Error Handling

Error CodeMessageDescription
-32603Internal errorNode's blob fee tracker failed to produce a result

Web3 Integration

ethers-example.js

javascriptimport { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/');

const blobBaseFeeHex = await provider.send('eth_blobBaseFee', []);
const blobBaseFee = BigInt(blobBaseFeeHex);
console.log('Blob base fee (wei):', blobBaseFee.toString());

viem-example.js

javascriptimport { createPublicClient, http } from 'viem';
import { mainnet } from 'viem/chains';

const client = createPublicClient({
    chain: mainnet,
    transport: http('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/'),
});

const blobBaseFee = await client.getBlobBaseFee();
console.log('Blob base fee (wei):', blobBaseFee);