{"uid":"cap_2Rae0QT6Z1GbKJKcVbomk","slug":"delx-commerce-seeded-window-pick-f39e6518","name":"Delx Commerce — Seeded Window Pick","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/seeded-window-pick?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Window Pick; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Items supplied to Seeded Window Pick; used only for this bounded calculation and processed in memory without retention."},"window_size":{"type":"integer","description":"Window Size supplied to Seeded Window Pick; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":[2,3,4],"start_index":1},"schema":"delx/util-seeded-window-pick/v1","status":"pass","evidence":{"retained":false,"input_sha256":"1046227e8b1c61c8658038d68757f80f7254aa306a9fdab930936da0103b9e24","external_calls":0},"operation":"seeded_decision:seeded_window_pick"}},"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_yokI2Z-pbuXypG9Sb8xds","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":"Returns a deterministic contiguous sub-window of an integer array derived from a seed string, with verifiable evidence of no data retention.","exampleAgentPrompt":"Pick a deterministic window of 3 consecutive items from the list [1,2,3,4,5,6,7,8,9,10] using the seed 'alpha42', and give me back the selected items and where the window starts.","exampleUseCases":[{"title":"Reproducible lottery ticket drawing","prompt":"I have a list of participant IDs [101,102,103,104,105,106,107,108] and I want to deterministically pick a window of 3 winners using the seed 'draw-2024-round1' — give me the selected IDs and the starting index so the result is auditable."},{"title":"Seeded task assignment from a queue","prompt":"I have a queue of task IDs [10,20,30,40,50,60,70,80] and I need to assign a window of 4 consecutive tasks to a worker using the seed 'worker-session-xyz' — pick the window deterministically and tell me where in the queue it starts."},{"title":"Verifiable test case sampling","prompt":"From my list of test case numbers [1,2,3,4,5,6,7,8,9,10,11,12] I want to reproducibly sample a window of 5 using the seed 'ci-run-9901', so I can verify the same tests are selected on every run — return the picked items and the start index."}],"resultDescription":"A JSON object containing the selected contiguous sub-array of integers ('items') and the zero-based 'start_index' at which the window begins, along with a status field ('pass'/'fail'), the operation name ('seeded_decision:seeded_window_pick'), the schema version, and an evidence block confirming the input SHA-256 hash, no external calls were made, and no data was retained.","failureModes":["Window size exceeds the length of the provided items array — likely returns an error or empty result","Items array exceeds 256 elements — rejected by schema validation","Seed string exceeds 8192 characters — rejected by schema validation","Missing required fields (seed, items, or window_size) — likely returns a validation error","Payment failure or insufficient USDC balance — x402 payment required before result is returned"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible, and verifiable selection of a contiguous window from an integer array based on a seed — especially in agent workflows where auditability matters (the SHA-256 evidence and no-retention guarantee are provided). It is ideal for trustless or decentralized contexts where you pay per result in USDC and require proof that no data was stored or external calls were made. Prefer alternatives if you need non-contiguous sampling, weighted selection, or operations on non-integer data types.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:52:17.253Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-window-pick-f39e6518"}