{"uid":"cap_IkiIeFah52ItlBnUH1vGa","slug":"delx-commerce-base-gas-price-staleness-check-9d1e7b1f","name":"Delx Commerce — Base Gas Price Staleness Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/base-gas-price-staleness?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to Base Gas Price Staleness; used only for this bounded calculation and processed in memory without retention."},"quoted_at_epoch":{"type":"integer","description":"Quoted At Epoch supplied to Base Gas Price Staleness; used only for this bounded calculation and processed in memory without retention."},"maximum_age_seconds":{"type":"integer","description":"Maximum Age Seconds supplied to Base Gas Price Staleness; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"fresh":true,"age_seconds":60},"schema":"delx/util-base-gas-price-staleness/v1","status":"pass","evidence":{"retained":false,"input_sha256":"71423649bb9f78764df45bb5a8b4de2c13085d598094d66b005c77f6181eac9f","external_calls":0},"operation":"evm_preflight:base_gas_price_staleness"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R4F0SkPcH_sU9eI-RN17k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a previously quoted Base network gas price is still fresh (within a maximum age threshold) given two epoch timestamps and a staleness limit.","exampleAgentPrompt":"Before submitting this Base transaction, check if the gas price I quoted 60 seconds ago (quoted_at_epoch 1717200000, now_epoch 1717200060) is still fresh with a maximum age of 120 seconds.","exampleUseCases":[{"title":"Pre-transaction gas price validation","prompt":"I have a gas price quoted at epoch 1717200000 and it's now epoch 1717200090 — check if it's still fresh given a maximum acceptable age of 120 seconds before I send my Base transaction."},{"title":"Agent EVM preflight safety check","prompt":"My agent quoted gas prices at epoch 1717199800 and the current time is epoch 1717200000 — is that quote still within the 180-second freshness window I need before executing on Base?"},{"title":"Stale gas detection in DeFi workflow","prompt":"I'm running an automated swap on Base and my gas price was fetched at epoch 1717200500; it's now epoch 1717200800 — tell me if it's stale given my 250-second maximum age limit."}],"resultDescription":"Returns a JSON object indicating whether the gas price quote is fresh (boolean), how many seconds old it is (age_seconds), a pass/fail status, and an evidence block confirming no data was retained and no external calls were made — suitable for EVM preflight decision-making.","failureModes":["Missing required fields (now_epoch, quoted_at_epoch, or maximum_age_seconds) result in a validation error","Negative age (now_epoch earlier than quoted_at_epoch) may produce unexpected results","Payment failure via x402 protocol prevents call from completing","Malformed integer types in input fields cause schema rejection"],"whenToPreferThis":"Use this endpoint when an AI agent or automated DeFi workflow needs a lightweight, verifiable, privacy-preserving staleness check on a Base network gas price quote before committing to a transaction — particularly when no external oracle call is needed and the calculation must be auditable with a retained=false evidence trail.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.951Z","isFirstParty":false,"canonicalSlug":"delx-commerce-base-gas-price-staleness-check-9d1e7b1f"}