{"uid":"cap_vFog2wuos06Cs6iQwhSWm","slug":"delx-commerce-seeded-consistent-shard-fe7810e4","name":"Delx Commerce — Seeded Consistent Shard","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-consistent-shard?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":8192,"description":"Key supplied to Seeded Consistent Shard; used only for this bounded calculation and processed in memory without retention."},"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Consistent Shard; used only for this bounded calculation and processed in memory without retention."},"shard_count":{"type":"integer","description":"Shard Count supplied to Seeded Consistent Shard; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"shard":8,"shard_count":16},"schema":"delx/util-seeded-consistent-shard/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3193822187c34bc2c5cf38dd467ce7ac4b223323e04a38e0cdc759a2a3dd8791","external_calls":0},"operation":"seeded_decision:seeded_consistent_shard"}},"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_nUn436E8TxjiwUeaA_9X6","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":"Given a key, seed, and shard count, deterministically assigns the key to one shard number in a reproducible and verifiable way.","exampleAgentPrompt":"Using the seeded consistent shard API, assign the key 'user-98234' with seed 'experiment-v3' across 16 shards and tell me which shard it lands in.","exampleUseCases":[{"title":"A/B test bucket assignment","prompt":"I need to consistently assign user ID 'usr_4821' to one of 8 experiment buckets using the seed 'ab-test-launch-2024' — which bucket does that user fall into?"},{"title":"Consistent cache partition routing","prompt":"Given the cache key 'product:catalog:42' and seed 'cache-ring-v2', which of the 32 shards should I route this request to?"},{"title":"Feature flag rollout targeting","prompt":"I'm rolling out a feature across 10 segments — can you tell me which segment the key 'account-77510' falls into using seed 'feature-dark-mode-v1'?"}],"resultDescription":"Returns a JSON object with the assigned shard number and shard_count, the operation schema identifier, a pass/fail status, and a verifiable evidence block including the SHA-256 hash of the input and confirmation that no data was retained and no external calls were made.","failureModes":["Missing required fields (key, seed, or shard_count) result in a validation error","shard_count of 0 or negative integer may cause a computation error","Key or seed exceeding 8192 characters will be rejected","Payment failure via x402 protocol will prevent execution"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible, and verifiable shard assignment for a given key and seed without maintaining any server-side state. It is ideal for stateless consistent hashing, A/B test bucketing, feature flag targeting, or load distribution where auditability (SHA-256 evidence) and no-data-retention guarantees matter. Prefer it over building your own consistent hash when you want a pay-per-call, no-signup, cryptographically evidenced result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:51:36.656Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-consistent-shard-fe7810e4"}