# CSV Preflight

> CSV Preflight is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.004984/call, status unknown (last checked 2026-11-20).

Validates a CSV file or body payload before on-chain processing using deterministic AmanChain node execution

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-csv-preflight?utm_source=zero.xyz
- Price: $0.004984/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-preflight-76a48f31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CxjUHfk27OctJmu3ib-ZK

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 csv-preflight-76a48f31 -d '<json body>'
```

Example prompt: Can you run a preflight validation check on this CSV data I'm about to submit to AmanChain — I want to make sure it's properly formatted and will pass before I actually send it on-chain?

## When to prefer this

Use this endpoint when you need to validate CSV-formatted data before committing it to on-chain execution on AmanChain, specifically to catch formatting or structural errors cheaply before incurring on-chain costs. Prefer this over generic CSV validators when the downstream target is the AmanChain ecosystem.

## Known failure modes

- Malformed or missing body object returns validation error
- Empty CSV payload may return ok:false with no detail
- Network or node consensus issues on AmanChain may cause transient failures
- Unexpected schema in body may cause parsing failure
- x402 payment failure if USDC balance is insufficient

## How this service works

node-operated on-chain API service. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-csv-preflight","request":"<input>"}.

## Output

Returns a JSON object with an 'ok' boolean indicating whether the CSV payload passed preflight validation, along with any errors or issues detected in the input data before on-chain submission.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-preflight-76a48f31/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
