{"uid":"cap_mQnnI2FRo9sDKfgESbKd_","slug":"vextorium-evm-gas-history-918e1da5","name":"Vextorium EVM Gas History","description":"558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/gas-history?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"blocks":{"type":"integer"},"network":{"enum":["base","ethereum","arbitrum","optimism","polygon","bnb","avalanche","gnosis","line","scroll","sonic","unichain"],"type":"string","description":"Chain (default base)"}}},"responseSchema":{"type":"json","example":{"blocks":10,"detail":[{"block":52091652,"tip_p10_gwei":0,"tip_p50_gwei":0.001,"tip_p90_gwei":0.005,"base_fee_gwei":0.005,"gas_usage_pct":8.1},{"block":52091653,"tip_p10_gwei":0,"tip_p50_gwei":0.00115,"tip_p90_gwei":0.0265,"base_fee_gwei":0.005,"gas_usage_pct":8.1}],"network":"base","avg_base_fee_gwei":0.005,"next_base_fee_gwei":0.005,"tip_recommendation_gwei":{"fast":0.013771,"normal":0.001015}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iR9LK_5qWtLRWjgAekpiY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical gas fees (base fee, tip percentiles, gas usage) for EVM chains over recent blocks, plus next-block base fee prediction and tip recommendations.","exampleAgentPrompt":"What are the gas fees on Ethereum right now? Pull the last 15 blocks of gas history and tell me the recommended tip for a fast transaction.","exampleUseCases":[{"title":"Optimize transaction gas on Arbitrum","prompt":"I'm about to send a batch of transactions on Arbitrum — can you check the last 10 blocks of gas history and tell me what tip to use for a normal-speed confirmation?"},{"title":"Monitor Base network congestion","prompt":"How congested is the Base network right now? Show me gas usage percentage and base fees across the last 20 blocks so I can decide whether to wait."},{"title":"Predict Ethereum next block fee","prompt":"What's the predicted next base fee on Ethereum and what's the fast tip recommendation I should set to get my transaction in the next block?"}],"resultDescription":"Returns a JSON object with: the number of blocks analyzed, a per-block detail array (block number, tip p10/p50/p90 in gwei, base fee in gwei, gas usage %), the average base fee across all blocks, the predicted next base fee, and fast/normal tip recommendations in gwei.","failureModes":["Invalid or unsupported network name returns an error","Requesting too many blocks may return partial data or an error","Network connectivity issues to the chain RPC may yield stale or missing data","Payment failure via x402 returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need historical gas fee data and tip recommendations for a specific EVM chain (Base, Ethereum, Arbitrum, Optimism, Polygon, BNB, Avalanche, Gnosis, Linea, Scroll, Sonic, Unichain) with per-block granularity. Ideal for agents that need to optimize transaction gas settings, monitor network congestion, or predict upcoming fees programmatically via a pay-per-call model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:45:23.468Z","isFirstParty":false,"canonicalSlug":"vextorium-evm-gas-history-918e1da5"}