# Delx Commerce — EVM Calldata Word Count

> Delx Commerce — EVM Calldata Word Count 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).

Counts the number of 32-byte words in EVM calldata and validates its structural shape, returning byte count, complete words, and partial word bytes.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-calldata-word-count?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-evm-calldata-word-count-7e9b547a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N8eVgNgRYANPQ_s2zBAPq

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-calldata-word-count-7e9b547a -d '<json body>'
```

Example prompt: Count the 32-byte words in this EVM calldata and tell me whether the shape is valid: 0xa9059cbb0000000000000000000000001111111111111111111111111111111111111111.

## When to prefer this

Use this endpoint when you need a fast, trustless, pay-per-use computation of EVM calldata word count without running a local EVM toolchain. Ideal for agent workflows doing preflight validation of transaction calldata before submission, where verifiable evidence (input hash, no retention, no external calls) is required. Prefer over running a local ABI parser when you need an auditable, micro-priced result with cryptographic evidence of computation integrity.

## Known failure modes

- Calldata exceeding 8192 characters will be rejected
- Non-hex or malformed calldata strings may cause validation failure or shape_valid=false
- Payment failure via x402 protocol will block request
- Empty calldata input may return zero counts with shape_valid=false

## 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 original calldata, total byte count, a boolean indicating whether the shape is valid (i.e., properly formed for EVM ABI), the number of complete 32-byte words, and the number of partial word bytes. Also includes an evidence object confirming the input was not retained, an SHA-256 hash of the input, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "calldata": {
   "type": "string",
   "maxLength": 8192,
   "description": "Calldata supplied to EVM Calldata Word Count; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "calldata": "0xa9059cbb0000000000000000000000001111111111111111111111111111111111111111",
   "byte_count": 36,
   "shape_valid": true,
   "complete_words": 1,
   "partial_word_bytes": 0
  },
  "schema": "delx/util-evm-calldata-word-count/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "1048e8d74a53c6ea3249086735deac2cb24ee3dd131a3852df0439253301d8de",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_calldata_word_count"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-evm-calldata-word-count-7e9b547a/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)
