{"uid":"cap_jKpNiD6cWh4F8GO2y1Ygy","slug":"statepulse-api-blockchain-gas-history-3add7094","name":"StatePulse API - Blockchain Gas History","description":"Scans recent block gas details to estimate the minimum, average, and maximum base fee.","url":"https://statepulse-api.hahavoid0.workers.dev/blockchain/gas-history","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"blocks":{"type":"number","default":20,"description":"Number of preceding blocks to scan"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"avg_base_fee_gwei":0.15,"max_base_fee_gwei":0.3,"min_base_fee_gwei":0.1},"supported":true,"confidence":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RJaLx92cV6Xr5vv8nzE6_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical base fee gas price statistics (average, min, max in gwei) for a blockchain network","exampleAgentPrompt":"What were the average, minimum, and maximum gas base fees on Ethereum over the last 24 hours? I want the gwei breakdown with a confidence rating.","exampleUseCases":null,"resultDescription":"A JSON object containing the average, maximum, and minimum base fee in gwei for the queried period, a 'supported' boolean indicating whether the network is covered, and a confidence level string (e.g. 'high').","failureModes":["Unsupported blockchain network returns supported:false","Invalid or out-of-range time/block parameters return an error","Network connectivity issues to the Cloudflare Worker may cause timeouts","Payment failure via x402/USDC on Base blocks the request"],"whenToPreferThis":"Use this endpoint when an agent needs historical gas fee statistics (avg/min/max base fee) for a blockchain network and wants a simple, structured summary rather than raw block-by-block data. Good for cost estimation, timing optimization, or trend analysis. Requires no API key; pay-per-call at $0.01 USDC via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:24.497Z","isFirstParty":false}