{"uid":"cap_UFNf5YbZ2FuPqvzGvtldH","slug":"base-mainnet-gas-fee-optimizer-6022ee19","name":"Base Mainnet Gas Fee Optimizer","description":"Live Base Mainnet gas data from eth_feeHistory: latest and 10-block average base fee (gwei), priority-fee percentiles (p25/p50/p75) and a congestion label.","url":"https://auditor-x402.onrender.com/api/base-gas-optimizer?utm_source=zero.xyz","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":{"required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qM_2-o2EdF8porXM2VB4j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live and 10-block average base fee, priority-fee percentiles (p25/p50/p75), and a congestion label for Base Mainnet using eth_feeHistory","exampleAgentPrompt":"What are the current gas fees on Base mainnet right now — give me the latest base fee, the 10-block average, priority fee percentiles, and whether the network is congested?","exampleUseCases":[{"title":"Pre-transaction gas check","prompt":"Before I send this transaction on Base, can you check the current gas fees and tell me if the network is congested or a good time to go?"},{"title":"DeFi bot fee optimization","prompt":"My trading bot needs to know the current p25, p50, and p75 priority fees on Base mainnet so it can set the right gas tip — can you pull the latest fee data?"},{"title":"Gas cost monitoring dashboard","prompt":"Pull the live base fee and 10-block average for Base mainnet and tell me if we're in a high-congestion period right now."}],"resultDescription":"Returns the latest base fee in gwei, the 10-block rolling average base fee, priority fee percentiles at p25/p50/p75, and a human-readable congestion label (e.g. LOW / MODERATE / HIGH) derived from eth_feeHistory on Base Mainnet.","failureModes":["RPC node unavailable or rate-limited — returns an error response","Base mainnet reorg or lag causes stale block data","Network timeout if Base node is slow to respond","Malformed or missing request body causes 400-level error"],"whenToPreferThis":"Use this endpoint when you need real-time, on-chain gas fee data specifically for the Base L2 network, including priority fee percentile breakdowns and a congestion classification. Prefer this over generic Ethereum gas APIs when transacting on Base, or when a DeFi agent needs to decide optimal tip levels before submitting a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:30:06.146Z","isFirstParty":false,"canonicalSlug":"base-mainnet-gas-fee-optimizer-6022ee19"}