# ChainRead TxPreflight

> ChainRead TxPreflight 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-20).

Pre-flight check for blockchain operations (balance, etc.) on Base/EVM chains, returning results for a batch of address+operation pairs before committing a transaction

## Facts

- Endpoint: POST https://api.firstmention.uk/s/chainread/txpreflight?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainread-txpreflight-4584e4e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b5F-1zzWYZz8HRoLqgEje

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-txpreflight-4584e4e7 -d '<json body>'
```

Example prompt: Before I send that transaction, can you preflight-check the balance of wallet 0x4200000000000000000000000000000000000006 on Base to make sure it has enough funds?

## When to prefer this

Use this endpoint when you need to read on-chain state (e.g. wallet balances) on Base/EVM chains before committing a transaction or executing an agent action. It is especially valuable for batching multiple address queries into a single paid call, minimizing both latency and cost. Prefer it over direct RPC calls when you want a managed, pay-per-use API with predictable pricing via x402/USDC.

## Known failure modes

- Invalid or malformed EVM address returns an error result for that op
- Unsupported op type returns an error for that operation entry
- Network connectivity issues to Base RPC may cause failures
- Payment not received (x402 flow not completed) results in HTTP 402 and no data
- Empty ops array may return empty results with no useful data

## 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 a count of operations, an array of per-operation results (each with index, success flag, op type, and result data such as chain name, address, and balance), aggregate ok/error counts, 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-txpreflight-4584e4e7/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)
