/l2beat/projects/costs
Get L2BEAT onchain costs per scaling project (calldata, blobs, compute, overhead)
Price: 1 credit
💡 AI Hint: Get the onchain costs that Ethereum layer-two scaling projects pay to post data and proofs to L1, over a chosen time window. Each project carries the cost split into calldata, blobs, compute, and overhead, expressed in gas, ETH, and USD, plus the number of L2 user operations. Omit ‘project’ to get all projects ranked by total USD cost, or pass a slug for a single project.
⚠️ Common errors: 412: Project not found
Authorizations
API token from the dashboard
Headers
Body
Max number of projects to return
x >= 1Max scrapping execution timeout (in seconds)
20 <= x <= 1500Project slug to return costs for a single project; omit for all projects
"base"
Time window for the onchain cost aggregation
1d, 7d, 30d, 90d, 180d, 1y, max