{"uid":"cap_LKbKnF2YpcHp77rQvNXQ2","slug":"gas-estimate-base-and-ethereum-gas-fees-1a0c8394","name":"Gas Estimate – Base and Ethereum Gas Fees","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/gas-estimate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"network":{"enum":["base","ethereum"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"network":"base","estimates":{"slow":{"max_fee_gwei":0.055},"normal":{"max_fee_gwei":0.155}},"base_fee_gwei":0.005,"gas_price_gwei":0.006}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_Ow68MqksZJAlD_yOPURXa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live gas price and slow/normal/fast fee estimates for Base or Ethereum networks in gwei.","exampleAgentPrompt":"What are the current slow, normal, and fast gas fee estimates on Ethereum right now, in gwei?","exampleUseCases":[{"title":"Pre-transaction gas check on Base","prompt":"Before I submit this Base transaction, can you check what the current slow, normal, and fast gas fees are so I can pick the right one?"},{"title":"Gas monitoring for cost-sensitive DeFi bot","prompt":"My DeFi bot only executes trades when gas on Ethereum is below 0.05 gwei — can you fetch the current base fee and estimates so I can decide whether to proceed?"},{"title":"Gas price comparison across networks","prompt":"Can you pull the live gas estimates for both Base and Ethereum so I can compare which network is cheaper to transact on right now?"}],"resultDescription":"A JSON object containing the network name (e.g. 'base' or 'ethereum'), the current base_fee_gwei, gas_price_gwei, and an estimates object with slow, normal, and fast tiers each showing their max_fee_gwei value.","failureModes":["Upstream RPC node unavailable — may return 5xx or stale data","Invalid or unsupported network specified — likely returns 400 or error message","Payment not fulfilled (x402 protocol) — returns 402 Payment Required","Rate limiting or Cloudflare Worker quota exceeded — returns 429 or 503"],"whenToPreferThis":"Choose this endpoint when you need real-time, tiered gas fee estimates (slow/normal/fast) specifically for Base or Ethereum, especially in agent workflows that need to decide whether to submit a transaction or compare network costs. It is well-suited for pre-transaction checks, cost-sensitive automation, or any agent that needs live gwei values without running its own RPC node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:54:14.518Z","isFirstParty":false,"canonicalSlug":"gas-estimate-base-and-ethereum-gas-fees-1a0c8394"}