{"uid":"cap_Ln95zpTZ8P9EjQEs7-wPu","slug":"delx-commerce-max-n-utility-max-n-3e37d4b2","name":"Delx Commerce — Max-N Utility (max-n)","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/max-n?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"Input field: values."}}},"responseSchema":{"type":"json","example":{"count":3,"value":9,"schema":"delx/util-max-n/v1"}},"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__Gw_kgZgCkTu_4opWX5W_","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 the maximum value and its count from an array of numeric values.","exampleAgentPrompt":"What's the maximum value in this list — [3, 9, 7, 9, 2, 5] — and how many times does it appear?","exampleUseCases":[{"title":"Peak score detection in leaderboard","prompt":"I have a list of player scores [120, 88, 200, 200, 155] — tell me what the highest score is and how many players hit that peak."},{"title":"Finding highest sensor reading","prompt":"Here are temperature readings from my sensors today: [72.1, 68.4, 80.0, 80.0, 74.5] — what was the maximum reading and did multiple sensors hit it?"},{"title":"Max bid identification in auction data","prompt":"I've got a set of bids [500, 750, 620, 750, 490] — which is the highest bid and how many bidders placed that exact amount?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:48.054Z","isFirstParty":false,"canonicalSlug":"delx-commerce-max-n-utility-max-n-3e37d4b2"}