{"uid":"cap_HBc1HUgK2ef01gyfooXqq","slug":"base-gas-oracle-704733b0","name":"Base Gas Oracle","description":"Base mainnet gas fees now, with USD cost estimates. Optional JSON body: gas_limit (integer 21000-30000000). Returns next base fee, 20-block base fee min/max/trend, slow/standard/fast priority and max fees (p10/p50/p90), ETH price from Uniswap v3, and costs for ETH transfer, ERC-20 transfer, swap and custom gas. L2 execution gas only (no L1 data fee). Body limit 4 KB. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.","url":"https://api.jagent.dev/v1/base-gas?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gas_limit":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rR14ZuUDs2G8lkFJiCIoX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time Base mainnet gas fee estimates with USD cost breakdowns for common transaction types, using live ETH price from Uniswap v3","exampleAgentPrompt":"What are the current gas fees on Base mainnet right now, including the USD cost for a token swap — my transaction uses a gas limit of 200000?","exampleUseCases":[{"title":"Pre-trade gas cost check for DeFi swap","prompt":"Before I submit this swap on Base, tell me how much it'll cost in USD at the standard gas speed right now — the swap uses about 150000 gas."},{"title":"Gas spike monitoring for deployment timing","prompt":"What's the current base fee trend on Base over the last 20 blocks? I want to know if gas is rising or falling before I deploy my contract."},{"title":"Wallet fee estimator for ETH transfer","prompt":"How much will a simple ETH transfer cost on Base in USD right now, at slow, standard, and fast speeds?"}],"resultDescription":"Returns a JSON object containing: the next predicted base fee, 20-block base fee minimum, maximum, and trend direction, slow/standard/fast priority fees and max fees at p10/p50/p90 percentiles, current ETH/USD price sourced from Uniswap v3, and USD cost estimates for common transaction types (ETH transfer, ERC-20 transfer, swap) plus a custom gas limit cost if provided. Covers L2 execution gas only — does not include L1 data fees.","failureModes":["Invalid gas_limit outside 21000–30000000 range returns a validation error","Request body exceeding 4 KB limit is rejected","Uniswap v3 ETH price feed temporarily unavailable may cause stale or missing USD estimates","Network congestion or RPC issues on Base may delay or degrade real-time base fee accuracy","Non-JSON or malformed request body returns a parse error"],"whenToPreferThis":"Use this endpoint when you need real-time, Base-specific gas fee estimates with USD cost context for common transaction types. It is ideal for DeFi agents, wallet UIs, and deployment tools targeting Base mainnet that need percentile-based fee suggestions (p10/p50/p90) and trend data. Prefer this over generic Ethereum gas oracles when the target chain is Base L2, and over on-chain fee queries when you need USD denomination via live Uniswap v3 pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:31:12.835Z","isFirstParty":false,"canonicalSlug":"base-gas-oracle-704733b0"}