{"uid":"cap_YITFswlA364kwGR2c72dA","slug":"code402-ethereum-gas-price-c3b1fb9c","name":"code402 Ethereum Gas Price","description":"Deterministic compliance verification (IBAN, sanctions, onchain address) with XDR-1 signed receipts, plus Ethereum chain-data endpoints. Paid per call via x402 on Base (USDC).","url":"https://verify.code402.dev/v1/chain/gas-price?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"result":"string","network":"ethereum-mainnet"}}}}},"responseSchema":{"type":"json","example":{"result":"chain data","network":"ethereum"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0029","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.0029/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0029","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0029","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WK6BkqKGbyZP27nVUSwEF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0029","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the current gas price on Ethereum mainnet, paid per call via x402 micropayment on Base (USDC).","exampleAgentPrompt":"What's the current gas price on Ethereum mainnet right now? I need it before I decide whether to submit this transaction.","exampleUseCases":[{"title":"Pre-transaction gas fee check","prompt":"Before I send this ETH transfer, can you pull the current Ethereum mainnet gas price so I know if fees are reasonable right now?"},{"title":"DeFi bot cost estimation","prompt":"I'm running an arbitrage script and need the live Ethereum gas price to calculate whether the trade is still profitable — can you fetch it?"},{"title":"Gas fee monitoring alert","prompt":"Check the current Ethereum mainnet gas price for me and let me know if it's below 20 gwei so I can time my contract deployment."}],"resultDescription":"Returns a JSON object containing the current Ethereum mainnet gas price as a string result and a network identifier (e.g. 'ethereum-mainnet'). The response is chain data fetched live from the Ethereum network at call time.","failureModes":["Ethereum node unavailable or rate-limited — may return 5xx error","Payment not processed via x402 — returns 402 Payment Required before delivering data","Stale or delayed data if underlying RPC node is behind the chain tip","Invalid or missing x402 payment header — request rejected before execution"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call lookup of Ethereum gas price without maintaining a dedicated RPC connection or subscription. It's ideal for agents that need occasional gas price checks with verifiable receipts (XDR-1 signed) and micropayment billing via USDC on Base rather than a monthly API plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:32:59.016Z","isFirstParty":false,"canonicalSlug":"code402-ethereum-gas-price-c3b1fb9c"}