# Onchain & Trading Intelligence — JSON Schema Validation Endpoint

> Onchain & Trading Intelligence — JSON Schema Validation Endpoint is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Validates arrays of onchain/trading data objects against a provided JSON Schema definition, returning validation results for structured data quality checks.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/jsonschema
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-trading-intelligence-json-schema-validation-endpoint-6dd80c68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I65u7TEFOHm0te9Lxrutl

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 onchain-trading-intelligence-json-schema-validation-endpoint-6dd80c68 -d '<json body>'
```

Example prompt: Validate this batch of token price records against our trading schema — make sure each object has the required fields and correct types before we process them.

## When to prefer this

Use this endpoint when you need to validate structured onchain or trading data objects against a JSON Schema definition as part of a data pipeline, before downstream processing, or to enforce data contracts on DeFi/trading intelligence payloads. Prefer this over generic validators when operating within the x402 pay-per-call ecosystem and already consuming other tools from this intelligence suite.

## Known failure modes

- Invalid or malformed JSON Schema provided — returns schema parse error
- Data array is empty or null — may return validation error or empty results
- Schema references unsupported JSON Schema keywords — may produce unexpected results
- Network timeout on Railway-hosted service — returns connection error
- Payment not settled (x402) — returns 402 Payment Required before processing

## How this service works

Validate data against a JSON Schema (strict). Returns valid + detailed errors. Send { schema, data }.

## Output

Returns validation results indicating whether each data object in the input array conforms to the provided JSON Schema, including details on any schema violations, missing required fields, or type mismatches.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "schema"
 ],
 "properties": {
  "data": {
   "type": "object",
   "description": "Data to validate"
  },
  "schema": {
   "type": "object",
   "description": "JSON Schema object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-trading-intelligence-json-schema-validation-endpoint-6dd80c68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
