{"uid":"cap_qPUS5ROUC4DWt64HGrnTN","slug":"delx-base-gas-price-staleness-check-e970ba86","name":"Delx Base Gas Price Staleness Check","description":"Base Gas Price Staleness: Base Gas Price Staleness checks the age of a caller-supplied gas quote before use from bounded caller-supplied values without an external provider. Call Base Gas Price Staleness before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for Base Gas Price Staleness as versioned deterministic JSON. Price: $0.…","url":"https://api.delx.ai/api/v1/x402/base-gas-price-staleness","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_KBirBZpOFH3jPFuL742UB","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":"Determines whether a previously quoted Base (L2) gas price is still fresh by comparing its age against a maximum allowed staleness threshold.","exampleAgentPrompt":"Check if the gas price I quoted at epoch 1710001000 is still fresh — it's now epoch 1710001090 and my maximum allowed staleness is 120 seconds.","exampleUseCases":[{"title":"Pre-transaction gas validity check","prompt":"Before I submit this Base network transaction, check if the gas price I fetched at epoch 1710005000 is still valid — current time is epoch 1710005080 and I want to reject anything older than 60 seconds."},{"title":"DeFi bot preflight freshness gate","prompt":"My trading bot cached a gas price at epoch 1710010000 and it's now epoch 1710010200 — tell me if that quote is still within my 150-second freshness window before I place the order."},{"title":"Agent workflow staleness guard","prompt":"I'm about to batch-submit EVM transactions and my gas price was quoted at epoch 1709999900; current epoch is 1710000000 and my policy is a 90-second max age — is the quote still fresh or do I need to re-fetch it?"}],"resultDescription":"Returns a JSON object indicating whether the gas price quote is fresh (boolean), how many seconds old it is (age_seconds), an overall pass/fail status, and an evidence block confirming no data was retained and no external calls were made. The operation field identifies this as an EVM preflight staleness check.","failureModes":["Missing required fields (now_epoch, quoted_at_epoch, or maximum_age_seconds) result in a validation error","Negative age if now_epoch is before quoted_at_epoch — may return an error or unexpected result","Non-integer epoch values cause schema validation failure","Payment failure (insufficient USDC balance) blocks the call with a 402 response"],"whenToPreferThis":"Use this endpoint when your agent needs a deterministic, in-memory, zero-side-effect staleness gate before submitting EVM transactions on Base L2. Prefer it over rolling your own timestamp arithmetic when you need a traceable evidence receipt (input SHA-256, retained:false, external_calls:0) for auditability in automated blockchain workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:06:55.059Z","isFirstParty":false}