{"uid":"cap_qKzDLQZ4WFSYZKZWXfqFd","slug":"on-chain-gas-price-lookup-by-chain-1a5bfb90","name":"On-Chain Gas Price Lookup by Chain","description":"Real-device, multi-region site verification with screenshot proof, live Pocket Network Shannon relay-demand/tokenomics/validator-security data, and on-chain RPC snapshots across 38 chains -- Ethereum, Solana, BSC, and peaq natively, plus 34 more EVM chains via Pocket Network's free public gateway (Arbitrum, Base, Optimism, Polygon, Avalanche, zkSync, Linea, Scroll, Gnosis, and more) -- 54 metered x402 routes, priced and settled per call in USDC. Migrating to Acurast decentralized cloud compute for censorship-resistant hosting -- stay tuned.","url":"https://organiccryptoyyc.com:8443/v1/chain/%7Bchain%7D/gas-price","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"wei":"12345678","gwei":0.012345678,"chain":"base","chainName":"Base"}},"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_eSj4Dd4UNrEJvlGfaY1sJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current gas price for a specified EVM-compatible blockchain in both wei and gwei units.","exampleAgentPrompt":"What's the current gas price on Base right now — give me both the wei and gwei values?","exampleUseCases":[{"title":"Pre-transaction gas cost check","prompt":"Before I send this Ethereum transaction, can you check the current gas price on Ethereum so I know what fee to expect?"},{"title":"Cross-chain gas comparison for DeFi","prompt":"I want to do a swap and I'm deciding between Arbitrum, Optimism, and Polygon — can you pull the current gas prices for all three so I can pick the cheapest?"},{"title":"Gas spike monitoring for automation","prompt":"Keep an eye on the gas price on Base for me and let me know if it drops below 0.01 gwei so I can time my contract deployment."}],"resultDescription":"A JSON object containing the current gas price in wei (integer string) and gwei (float), along with the chain slug and human-readable chain name — e.g. {\"wei\":\"12345678\",\"gwei\":0.012345678,\"chain\":\"base\",\"chainName\":\"Base\"}.","failureModes":["Unsupported chain identifier returns an error or empty response","RPC node unavailable or rate-limited causing upstream timeout","Malformed chain path parameter causing 400-class error","Pocket Network gateway outage affecting non-native chains","Stale gas price data if upstream RPC is lagging"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call gas price lookup across 38 chains without managing your own RPC infrastructure. It's ideal for agents that need real-time gas data across multiple EVM chains — including niche chains like peaq or Linea — and want to pay micro-amounts in USDC via x402 rather than subscribing to a monthly RPC plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T00:44:23.922Z","isFirstParty":false}