{"uid":"cap_LeYUgLu5aQRPLdCDl4eBr","slug":"delx-commerce-x402-timeout-check-1b243b4a","name":"Delx Commerce X402 Timeout 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/x402-timeout-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to X402 Timeout Check; used only for this bounded calculation and processed in memory without retention."},"expires_epoch":{"type":"integer","description":"Expires Epoch supplied to X402 Timeout Check; used only for this bounded calculation and processed in memory without retention."},"minimum_lead_seconds":{"type":"integer","description":"Minimum Lead Seconds supplied to X402 Timeout Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"lead_seconds":300,"within_window":true,"maximum_lead_seconds":9223372036854776000,"minimum_lead_seconds":30},"schema":"delx/util-x402-timeout-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"1199b0cc2c5f6a7de14c3b13bef25ae15b4a34f6c7c5ba48af83021cc95cbfac","external_calls":0},"operation":"delivery_contract:x402_timeout_check"}},"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_DqNZJcB4R63qz0VXz6fjp","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":"Validates whether a given timestamp pair satisfies the X402 payment protocol timeout window, returning lead seconds and pass/fail status.","exampleAgentPrompt":"Check whether the current time (epoch 1720000000) is still within the x402 payment window that expires at epoch 1720000600, with a minimum lead of 30 seconds.","exampleUseCases":[{"title":"Pre-flight x402 payment validity check","prompt":"Before I submit this x402 USDC payment, check if my current epoch 1720000000 is still within the window that expires at epoch 1720000600, requiring at least 30 seconds of lead time."},{"title":"Agent payment orchestration guard","prompt":"My agent is about to fulfill an x402 request — current time is epoch 1719999900, the authorization expires at epoch 1720000200, and the minimum lead required is 60 seconds. Tell me if we're still inside the valid window."},{"title":"Debugging expired x402 transaction","prompt":"An x402 payment failed and I want to know why — the current epoch was 1720001000, the expiry was 1720000800, and the minimum lead was 30 seconds. Check whether the timeout window was violated."}],"resultDescription":"Returns a JSON object containing the computed lead_seconds between now and expiry, a within_window boolean indicating pass or fail, the minimum and maximum lead second bounds, a top-level status field ('pass' or 'fail'), and an evidence block with a SHA256 hash of the input and confirmation that no data was retained and no external calls were made.","failureModes":["Missing required fields (now_epoch, expires_epoch, minimum_lead_seconds) result in validation error","Non-integer epoch values cause type error","Epoch values far outside realistic range may cause overflow behavior","Payment failure or network error on the x402 micropayment layer prevents the call from completing"],"whenToPreferThis":"Use this endpoint when your agent needs a verifiable, auditable check of x402 payment timeout compliance — especially when you need cryptographic evidence (input SHA256) that the check was performed without data retention or external calls. Prefer this over local timestamp math when auditability, tamper-evidence, or compliance with the x402 protocol specification matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:07.690Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-timeout-check-1b243b4a"}