# Delx Commerce — Seeded Consistent Shard

> Delx Commerce — Seeded Consistent Shard is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Given a key, seed, and shard count, deterministically assigns the key to one shard number in a reproducible and verifiable way.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/seeded-consistent-shard?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-seeded-consistent-shard-fe7810e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vFog2wuos06Cs6iQwhSWm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-seeded-consistent-shard-fe7810e4 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-seeded-consistent-shard-fe7810e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
