eth_blobBaseFee - Arbitrum Nova
Example code for the eth_blobBaseFee JSON-RPC method. Complete guide on how to use eth_blobBaseFee JSON-RPC in GetBlock Web3 documentation.
This method returns the current blob base fee in wei used to price EIP-4844 blob-carrying transactions. It is used when constructing transactions that post blob data.
Parameters
Request
curl --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"
}'const 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);import 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())Response
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": "0x1"
}Response Parameters
jsonrpc
string
JSON-RPC protocol version ("2.0")
id
string
Request identifier matching the request
result
string
Hex-encoded blob base fee in wei
Use Cases
Blob Pricing: Estimate the data-availability cost of a blob transaction
Fee Estimation: Combine blob base fee with execution fees for a total cost
Cost Monitoring: Track blob fee levels for data-heavy applications
Submission Timing: Defer blob submissions when the blob base fee spikes
Error Handling
-32603
Internal error
The node failed to compute the blob base fee
-32601
Method not found
The client build does not expose blob fee data
Web3 Integration
Last updated
Was this helpful?