# Delx Commerce — Transaction Hash Format Validator

> Delx Commerce — Transaction Hash Format Validator 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 whether a given string is a correctly formatted 0x-prefixed 32-byte Ethereum/EVM transaction hash

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/tx-hash-format-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-transaction-hash-format-validator-0d041d46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EWd_7HqmXujX63AnTU6ni

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-format-validator-0d041d46 -d '<json body>'
```

Example prompt: Can you check if this transaction hash is correctly formatted before I use it to look up the transaction: 0x4e3a2b1c8f6d0e9a7c5b3d2f1e4a8c0b6d9f2e3a1c5b7d4f8e2a0c6b9d3f1e5?

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001 USDC), no-signup check to confirm a transaction hash string is correctly formatted before passing it downstream to more expensive blockchain queries, explorers, or smart contract calls. It is ideal for input sanitization in automated agent workflows handling user-submitted or externally sourced transaction identifiers.

## Known failure modes

- Missing or empty tx_hash field returns a validation failure or error response
- Non-string input may cause a 400 error
- Hash without 0x prefix will return valid: false
- Hash of wrong byte length (not 32 bytes / 64 hex chars) will return valid: false
- Network timeout or service unavailability returns a 5xx 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 with a 'valid' boolean indicating whether the input string conforms to the 0x-prefixed 32-byte transaction hash format, and a 'schema' field identifying the validator version (e.g. 'delx/util-tx-hash-format-check/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tx_hash": {
   "type": "string",
   "description": "0x-prefixed 32-byte tx hash"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "valid": true,
  "schema": "delx/util-tx-hash-format-check/v1"
 }
}
```

## More

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