# ChainRead Preflight

> ChainRead Preflight is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-23).

Previews the per-operation cost and structure of a batch of blockchain read operations (e.g. balance lookups) before committing payment

## Facts

- Endpoint: POST https://api.firstmention.uk/s/chainread/preflight?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainread-preflight-a96305b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kGlxPLx-D1zrS66Mt1Hdo

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 chainread-preflight-a96305b3 -d '<json body>'
```

Example prompt: Before I pay, can you preflight a batch of chainread operations — a balance check for 0x4200000000000000000000000000000000000006 on Base — and tell me how many reads that is, what each one costs in USD, and whether they'll all succeed?

## When to prefer this

Use this endpoint when you need to preview the cost and feasibility of a batch of blockchain read operations on Base before committing micropayment. It is the right choice when you want to validate op structures, understand per-read pricing, and avoid wasting payment on malformed requests. Prefer this over directly calling the paid chainread endpoint when the input set is untested or the budget must be confirmed first.

## Known failure modes

- Malformed ops array returns validation error
- Unknown op type causes per-operation error flag
- Invalid blockchain address format causes operation failure
- Network or RPC error on the Base chain causes read failure
- Empty ops array returns zero count with no results
- Payment header missing or insufficient USDC causes 402 response

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with the total operation count, an array of per-operation results (each with index, success flag, op type, and result data like chain, address, and balance), counts of successful and failed operations, and the per-read cost in USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "address": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "results": [
   {
    "i": 0,
    "ok": true,
    "op": "balance",
    "result": {
     "chain": "base",
     "address": "0x4200000000000000000000000000000000000006",
     "balance": "1.23"
    }
   }
  ],
  "ok_count": 3,
  "error_count": 0,
  "per_read_usd": 0.003333
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainread-preflight-a96305b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
