{"uid":"cap_rbXQjs_RtLTDhIoyS0GJE","slug":"x402-timeout-check-a5ce001e","name":"X402 Timeout Check","description":"X402 Timeout Check: X402 Timeout Check checks challenge expiration and minimum buyer processing time from bounded caller-supplied values without an external provider. Call X402 Timeout Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Timeout Check as versioned deterministic JSON. Price: $0.001…","url":"https://api.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_BscTu0672DkKK2vjHbDiO","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 x402 payment challenge expiration and minimum buyer processing time from caller-supplied epoch values, returning an explicit accept/reject status with normalized evidence.","exampleAgentPrompt":"Before we pay this x402 challenge, check if it's still valid — the current time is epoch 1718000000, it expires at epoch 1718003600, and we need at least 30 seconds of minimum lead time for the buyer to process it.","exampleUseCases":[{"title":"Pre-payment x402 challenge expiry check","prompt":"I have an x402 challenge that expires at epoch 1718003600 and I'm at epoch 1718000000 right now — verify it hasn't expired and that there's at least 60 seconds of lead time before I send the payment."},{"title":"Agent delivery timing validation","prompt":"Before my agent accepts this assembled delivery, check the timeout: current epoch is 1718001000, the challenge expires at epoch 1718001500, and the minimum buyer lead time required is 120 seconds — should I accept or reject it?"},{"title":"Stale challenge rejection screening","prompt":"I need to know if this x402 challenge is still usable — current epoch is 1718005000, expires at 1718004800, minimum lead seconds is 30. Tell me if it should be accepted or rejected and why."}],"resultDescription":"A versioned deterministic JSON object containing an explicit acceptance or rejection status, contract-specific timeout checks, normalized evidence derived from the supplied epoch values, and the specific mismatch reasons if the challenge fails validation.","failureModes":["Missing required fields (now_epoch, expires_epoch, minimum_lead_seconds) result in validation error","now_epoch >= expires_epoch causes immediate rejection with expiration mismatch reason","expires_epoch - now_epoch < minimum_lead_seconds causes rejection with insufficient lead time reason","Malformed integer types for epoch or lead values may return schema validation errors"],"whenToPreferThis":"Use this endpoint when you need a deterministic, stateless check of x402 challenge timing constraints before committing to a payment or accepting an agent delivery. Prefer it over manual time arithmetic when you need normalized mismatch reasons and structured accept/reject evidence as versioned JSON, particularly in agent workflows that must audit their payment decisions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:52:43.048Z","isFirstParty":false,"canonicalSlug":"x402-timeout-check-a5ce001e"}