# Delx Commerce — Max-N Utility (max-n)

> Delx Commerce — Max-N Utility (max-n) 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-01).

Returns the maximum value and its count from an array of numeric values.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/max-n?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-max-n-utility-max-n-3e37d4b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ln95zpTZ8P9EjQEs7-wPu

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-max-n-utility-max-n-3e37d4b2 -d '<json body>'
```

Example prompt: What's the maximum value in this list — [3, 9, 7, 9, 2, 5] — and how many times does it appear?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup computation of the maximum value in a numeric array with verifiable delivery via x402 on Base or Solana. Prefer it for agent workflows where you want exact, transparent micropayment pricing ($0.001 USDC) and cryptographic proof of result delivery, rather than integrating a general-purpose math library or building the logic inline.

## Known failure modes

- Empty array input returns error or undefined behavior
- Non-numeric values in array may cause validation failure
- Malformed input object missing 'values' key returns error
- Payment failure via x402 prevents execution and returns 402 status

## 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: 'value' (the maximum numeric value in the input array), 'count' (how many times that maximum appears), and 'schema' (a schema identifier string 'delx/util-max-n/v1' for verifiable delivery).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "description": "Input field: values."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "value": 9,
  "schema": "delx/util-max-n/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-max-n-utility-max-n-3e37d4b2/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)
