# Delx Commerce — Transaction Hash Validator

> Delx Commerce — Transaction Hash Validator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Validates and normalizes a blockchain transaction hash, returning its canonical 0x-prefixed form and confirming it is a well-formed 32-byte hex string.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/tx-hash-validate?utm_source=zero.xyz
- Price: $0.003/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-transaction-hash-validator-76a9218f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3MqMOe_90934DQg4EYzl_

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-transaction-hash-validator-76a9218f -d '<json body>'
```

Example prompt: Can you check whether this is a valid transaction hash and give me the normalized version: abababababababababababababababababababababababababababababababababab?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-result check on whether a string is a well-formed 32-byte blockchain transaction hash before using it in downstream operations like on-chain lookups, database storage, or user-facing displays. Prefer it over manual regex checks when you also need canonical normalization (consistent 0x prefix). Cost is $0.003 USDC with no signup required.

## Known failure modes

- Input hash is not 64 hex characters — validation fails with valid:false
- Non-hex characters in the string cause parsing failure
- Empty or missing tx_hash field returns an error
- Hash longer or shorter than 32 bytes (64 hex chars) is rejected

## 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 indicating whether the hash is valid (boolean), the schema identifier ('delx/util-tx-hash-validate/v1'), the normalized 0x-prefixed 64-character hex string, and the byte length (32 if valid).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tx_hash": {
   "type": "string",
   "description": "32-byte transaction hash hex (64 hex chars, optional 0x)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "schema": "delx/util-tx-hash-validate/v1",
  "normalized": "0xabababababababababababababababababababababababababababababababab",
  "byte_length": 32
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-transaction-hash-validator-76a9218f/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)
