{"uid":"cap_yR3JADwk7PUzXVYtJGRKi","slug":"evm-gas-price-api-ethereum-base-polygon-fb6c672b","name":"EVM Gas Price API (Ethereum/Base/Polygon)","description":"EVM gas price API: current gas fees for Ethereum, Base, Polygon, Arbitrum, Optimism, BSC, and Avalanche — node-reported gas price plus EIP-1559 estimates from the last 5 blocks: next base fee and 25th/50th/75th-percentile priority fees, in gwei. Read directly from public JSON-RPC nodes with automatic fallbacks. Use for transaction cost estimation, fee optimization, and timing on-chain actions. Cached up to 15 seconds.","url":"https://gateway.stride20k.com/crypto/gas/:chain?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"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_HhDelKkjwCQnjQhtOPhfr","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 current gas fees for Ethereum, Base, or Polygon — including node-reported gas price and EIP-1559 estimates (next base fee, p25/p50/p75 priority fees) derived from the last 5 blocks, in gwei.","exampleAgentPrompt":"What are the current EIP-1559 gas fees on Ethereum — give me the next base fee and the p25, p50, and p75 priority fees in gwei so I can decide whether to submit my transaction now.","exampleUseCases":[{"title":"Check if gas is cheap enough","prompt":"Is gas cheap enough on Ethereum right now to submit my transaction? Give me the current base fee and priority fee percentiles so I can decide whether to wait or go ahead."},{"title":"Estimate Polygon smart contract fees","prompt":"I'm about to call a smart contract on Polygon — what are the current gas fees including the next base fee and p50 priority fee in gwei so I can estimate my total transaction cost?"},{"title":"Compare gas fees across networks","prompt":"I need to bridge some tokens and want to pick the cheapest network right now — can you pull the current gas fees for Ethereum, Base, and Polygon and tell me which one has the lowest fees?"}],"resultDescription":"A JSON object with the queried chain name, raw gas price in wei and gwei, projected next-block base fee in gwei, priority fee percentiles (p25/p50/p75) averaged over the last 5 blocks in gwei, number of blocks sampled, cache status, upstream source label, and the ISO 8601 timestamp when the data was fetched.","failureModes":["Unsupported chain value (not ethereum/base/polygon) returns a 400 or validation error","Upstream JSON-RPC node unreachable — fallback nodes attempted but may still fail with 502/503","Stale cache (up to 15 seconds old) may not reflect very recent block activity","Missing pathParam :chain results in 404 or routing error","EIP-1559 fields absent on chains that don't support fee history"],"whenToPreferThis":"Use this endpoint when you need real-time or near-real-time gas fee data for Ethereum, Base, or Polygon — especially when you need EIP-1559 priority fee percentiles (p25/p50/p75) from recent blocks for transaction cost estimation or fee optimization. Prefer this over generic block explorers when you need structured JSON output with percentile breakdowns and automatic fallback reliability. Not suitable for chains outside the three supported networks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:39:00.043Z","isFirstParty":false,"canonicalSlug":"evm-gas-price-api-ethereum-base-polygon-fb6c672b"}