# Delx Commerce — X-Forwarded-For Chain Parser

> Delx Commerce — X-Forwarded-For Chain Parser 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).

Parses an X-Forwarded-For header string into an ordered list of IP addresses with hop count and trust metadata

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/x-forwarded-for-chain?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-x-forwarded-for-chain-parser-a062e05e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j0NXdX_3YxCYQ8PSAnR6S

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-x-forwarded-for-chain-parser-a062e05e -d '<json body>'
```

Example prompt: Can you parse this X-Forwarded-For header and tell me the list of IP addresses and how many hops it contains: '203.0.113.1, 198.51.100.7, 10.0.0.1'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup utility to parse X-Forwarded-For headers into structured IP lists with hop counts — especially in agent workflows that require verifiable, in-memory-only processing with cryptographic input hashing for auditability. Prefer it over writing custom parsing logic when you need a reliable, standardized result with evidence metadata.

## Known failure modes

- Malformed or empty header string may yield an empty address array or parsing error
- Header exceeding 8192 characters will be rejected
- Network or payment failure may prevent the call from completing
- Invalid JSON input returns a 4xx error

## 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 containing an ordered array of IP addresses extracted from the header, the total hop count, a trust_decision field (currently 'not_evaluated'), evidence metadata (including whether data was retained, a SHA-256 hash of the input, and external call count), and a status field indicating success.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "header": {
   "type": "string",
   "maxLength": 8192,
   "description": "Header supplied to X Forwarded For Chain; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "addresses": [
    "203.0.113.1",
    "198.51.100.7"
   ],
   "hop_count": 2,
   "trust_decision": "not_evaluated"
  },
  "schema": "delx/util-x-forwarded-for-chain/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f8588bb5312c2456e1267b1eeb6b19b2c35299b60cb7bcdc7fa6aef7bc97373d",
   "external_calls": 0
  },
  "operation": "web_reliability:x_forwarded_for_chain"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-x-forwarded-for-chain-parser-a062e05e/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)
