# Delx Commerce — EVM Chain ID Hex Normalizer

> Delx Commerce — EVM Chain ID Hex Normalizer 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).

Converts an EVM chain ID (in any format) to its canonical hex and decimal representations in a single in-memory, stateless computation.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-chain-id-hex-normalize?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-chain-id-hex-normalizer-596ebcda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x-wrNgCFgFjNtfHXJFVg0

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-chain-id-hex-normalizer-596ebcda -d '<json body>'
```

Example prompt: Normalize chain ID 8453 to its canonical hex format so I can use it in my EVM transaction preflight.

## When to prefer this

Choose this endpoint when you need a fast, stateless, verifiable conversion of an EVM chain ID to its canonical hex representation with cryptographic evidence of no data retention — ideal for privacy-sensitive agent pipelines or pre-flight EVM transaction validation where auditability matters. Prefer over a local utility when you need the evidence receipt or are already operating within the Delx x402 micropayment flow.

## Known failure modes

- Invalid or non-numeric chain_id string returns an error or unexpected result
- chain_id exceeding 8192 characters may be rejected
- Malformed input (empty string, null) may cause a 400 or processing error
- Payment failure via x402 (insufficient USDC balance) blocks the call

## 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 normalized chain ID in both hex (0x-prefixed) and decimal forms, plus an evidence block confirming no data was retained and no external calls were made, along with a pass/fail status and schema identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain_id": {
   "type": "string",
   "maxLength": 8192,
   "description": "Chain Id supplied to EVM Chain Id Hex Normalize; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "hex": "0x2105",
   "decimal": 8453
  },
  "schema": "delx/util-evm-chain-id-hex-normalize/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "be323df1e1cdb84b28aeaec9e86e6786c27277b63126d7361e444f5d6fce0979",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_chain_id_hex_normalize"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-evm-chain-id-hex-normalizer-596ebcda/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)
