{"uid":"cap__aiGELaTIMko1UH7xpIWc","slug":"evm-gas-price-854b2357","name":"EVM Gas Price","description":"Current gas price and base fee for any supported chain, in wei and gwei, plus the cost estimate of a plain transfer. For agents planning a transaction. Via eth_gasPrice.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","description":"base | ethereum | polygon | arbitrum | optimism."}}},"responseSchema":{"type":"object","properties":{"gasPriceWei":{"type":"string"},"gasPriceGwei":{"type":"number"},"transferCostEther":{"type":"number"}}},"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_ewqthOTt4qfp_DVwDyNBM","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 the current gas price and base fee for a supported EVM chain in wei and gwei, plus the estimated cost of a plain ETH transfer.","exampleAgentPrompt":"What's the current gas price on Base right now — give me the value in gwei and tell me how much a plain ETH transfer would cost?","exampleUseCases":[{"title":"Pre-transaction gas check on Ethereum","prompt":"Before I send this ETH transaction, can you check what the current gas price is on Ethereum and tell me the estimated cost of a plain transfer in ether?"},{"title":"Cheapest chain selection for transfer","prompt":"I want to send ETH and I'm considering Base, Polygon, or Arbitrum — can you pull the current gas prices on all three so I can pick the cheapest one?"},{"title":"Gas monitoring for DeFi bot","prompt":"Check what the current gas price in gwei is on Optimism right now and let me know the estimated cost of a plain transfer — I need this before my bot submits any transactions."}],"resultDescription":"Returns a JSON object with the current gas price in wei (as a string), gas price in gwei (as a number), and the estimated cost of a plain 21,000-gas ETH transfer in ether (as a number) for the requested chain.","failureModes":["Unsupported chain name returns an error — only base, ethereum, polygon, arbitrum, optimism are valid","Network congestion or RPC node downtime may cause stale or failed responses","Payment not included or incorrect amount results in 402 Payment Required","Gas price spikes between query and transaction submission mean the estimate may be outdated instantly"],"whenToPreferThis":"Use this endpoint when an agent needs to inspect current gas conditions on a specific EVM-compatible chain before deciding whether to submit a transaction, estimate transaction fees, or compare cost across chains. Prefer it over on-chain RPC calls when you want a simple, pre-parsed result in both wei and gwei with a plain-transfer cost estimate included at a flat rate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:45:15.016Z","isFirstParty":false,"canonicalSlug":"evm-gas-price-854b2357"}