{"uid":"cap_1jICEONxbgwyaDDorCv9l","slug":"evm-chain-gas-price-api-d946077d","name":"EVM Chain Gas Price API","description":"Current gas price on an EVM blockchain, read live via a public RPC endpoint (viem) — no API key, no aggregator. Also available as dedicated routes: GET /api/gas/base, GET /api/gas/ethereum. Parameter: ?chain=<base|ethereum>.","url":"https://x402-seller-0ay3.onrender.com/api/chain/gas","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","required":["chain"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"EVM chain to query."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"base","fetched_at":"2026-09-01T12:00:00.000Z","gas_price_wei":"6000000","gas_price_gwei":0.006}},"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_-KEZWT0F1sm1T3U6GTl-V","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 (in wei and gwei) for a specified EVM blockchain (Base or Ethereum), read live from a public RPC endpoint using viem","exampleAgentPrompt":"What's the current gas price on Base right now — give me the live gwei reading directly from the network?","exampleUseCases":[{"title":"Check gas before sending transaction","prompt":"What's the live gas price on Ethereum right now? I want to know if it's worth sending a transaction or if I should wait."},{"title":"Monitor Base network gas fees","prompt":"Can you check the current gas price on Base for me? I need the reading in gwei to estimate my transaction costs."},{"title":"Compare gas across chains","prompt":"What are the gas prices on both Base and Ethereum right now? Fetch the live gwei readings from each chain so I can decide which one is cheaper to use."}],"resultDescription":"A JSON object containing the chain name, the live gas price expressed in both wei (as a string) and gwei (as a float), and a timestamp of when the data was fetched — e.g. {chain: 'base', gas_price_wei: '6000000', gas_price_gwei: 0.006, fetched_at: '2026-09-01T12:00:00.000Z'}.","failureModes":["Unsupported chain value (not 'base' or 'ethereum') returns a 400 or validation error","Public RPC endpoint unavailable or rate-limited causing a timeout or 503","Stale or delayed data if the RPC node is lagging behind the chain tip","Network connectivity issues from the Render-hosted service"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-API-key live gas price for Base or Ethereum directly from a public RPC node via viem. It is ideal for lightweight agents that need a real-time gwei reading without setting up an Infura/Alchemy key or calling a gas aggregator. Prefer alternatives like Etherscan Gas Tracker or Blocknative if you need historical gas data, priority fee breakdowns, or EIP-1559 base/priority fee separation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:28.411Z","isFirstParty":false}