{"uid":"cap_vAZ-5nFbuHJI1aKSontwD","slug":"delx-commerce-seeded-reservoir-sample-6bbfd58d","name":"Delx Commerce — Seeded Reservoir Sample","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-reservoir-sample?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Reservoir Sample; used only for this bounded calculation and processed in memory without retention."},"count":{"type":"integer","description":"Count supplied to Seeded Reservoir Sample; 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 Reservoir Sample; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":[1,3,5],"indices":[0,2,4]},"schema":"delx/util-seeded-reservoir-sample/v1","status":"pass","evidence":{"retained":false,"input_sha256":"fe584420fbe1d387c960f909168094961a1eae04083c9ffe25a052869b8a68e5","external_calls":0},"operation":"seeded_decision:seeded_reservoir_sample"}},"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_fY6QNY289rzYTgnJR9HgU","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 reproducible random sample of integers from a list using a seed, with cryptographic evidence of no data retention or external calls.","exampleAgentPrompt":"From the list [2, 5, 7, 11, 13, 17, 19, 23], pick 3 items using seed 'alpha42' — I need it to be reproducible and verifiably processed without retaining my data.","exampleUseCases":[{"title":"Reproducible lottery draw from candidates","prompt":"I have a list of 50 participant IDs as integers and I need to pick 10 winners. Use seed 'contest-2024-Q3' so the draw is reproducible and auditable, and confirm no data was stored."},{"title":"Agent decision tie-breaking with fixed seed","prompt":"My agent needs to deterministically pick 2 tasks from this list [101, 102, 103, 104, 105] using seed 'agent-run-7f3a' so it always makes the same choice given the same run identifier."},{"title":"Random test dataset split with verifiable seed","prompt":"Split this array of integers [1,2,3,4,5,6,7,8,9,10] by sampling 4 elements using seed 'split-seed-v1', and give me evidence that the input wasn't retained externally."}],"resultDescription":"Returns the sampled items (as an integer array), their original indices, an operation name, schema version, a pass/fail status, and an evidence block containing a SHA-256 hash of the input, a flag confirming no data was retained, and a count of zero external calls made.","failureModes":["items array exceeds 256-element limit — request rejected","seed string exceeds 8192 character limit — request rejected","count greater than items length — may return fewer results or error","malformed JSON body — HTTP 400 response","payment not provided or insufficient USDC — HTTP 402 response","invalid integer types in items array — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible random sampling from an integer array and require cryptographic proof that the input was not retained and no external calls were made — particularly useful in auditable agent workflows, privacy-sensitive contexts, or trust-minimized environments where verifiable computation matters. Prefer it over a generic shuffle or random library call when on-chain payment accountability and evidence of stateless processing are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:07.187Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-reservoir-sample-6bbfd58d"}