# Delx Commerce — EVM Log Topic Count Check

> Delx Commerce — EVM Log Topic Count Check 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).

Validates that a list of EVM log topics does not exceed a specified maximum count, returning the topic count and a pass/fail result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-log-topic-count-check?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-evm-log-topic-count-check-36adbdb2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kVK5wUsccrGDv6TrY-QFj

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-evm-log-topic-count-check-36adbdb2 -d '<json body>'
```

Example prompt: Check if my EVM log topics list — ["0xaaaa...bbbb", "0xcccc...dddd"] — is within the maximum of 4 topics allowed, and tell me whether it passes the limit check.

## When to prefer this

Use this endpoint when you need a cheap, verifiable, stateless preflight check on EVM log topic counts before executing on-chain queries or transactions. It is ideal for AI agents performing blockchain workflow automation that require tamper-evident, auditable validation evidence (SHA256 input hash, no retention, zero external calls). Prefer it over custom logic when you need cryptographic proof of the check and pay-per-result pricing without signup.

## Known failure modes

- Topics array exceeds 256 items — request rejected
- Individual topic string exceeds 8192 characters — request rejected
- Missing or malformed maximum integer — validation cannot proceed
- Payment failure via x402 protocol — call not executed
- Malformed JSON body — 400 error returned

## How this service works

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

## Output

Returns the original topics array, the counted number of topics, a boolean indicating whether the count is within the specified maximum, a pass/fail status string, and verifiable evidence including a SHA256 hash of the input and a flag confirming no data was retained or external calls made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "topics": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Topics supplied to EVM Log Topic Count Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum": {
   "type": "integer",
   "description": "Maximum supplied to EVM Log Topic Count Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "topics": [
    "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
   ],
   "topic_count": 1,
   "within_limit": true
  },
  "schema": "delx/util-evm-log-topic-count-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "94bb14a112913b6e521fe6f4d7a71088495e0a7177ac1eb18e1ff94e7d02627e",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_log_topic_count_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-evm-log-topic-count-check-36adbdb2/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)
