# NO HANDS AI Chain Indexed Query Preflight

> NO HANDS AI Chain Indexed Query Preflight is a paid API for AI agents from nohands-coinbase-bazaar.bytoken2023.workers.dev, paid per call via x402, $0.005008/call, status unknown (last checked 2026-11-02).

Preflights an indexed blockchain data query before payment by returning schema discovery, query type classification, estimated row count, cost fit analysis, and safety flags.

## Facts

- Endpoint: GET https://nohands-coinbase-bazaar.bytoken2023.workers.dev/v1/x402/chain/indexed-query-preflight?utm_source=zero.xyz
- Price: $0.005008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/no-hands-ai-chain-indexed-query-preflight-57bf7a7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xJWYSTY62OuhkuWDjxd2R

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 no-hands-ai-chain-indexed-query-preflight-57bf7a7a
```

Example prompt: Before I pay for this indexed blockchain query, can you preflight it to check the query type, estimated row count, whether it fits my budget, and flag any safety issues?

## When to prefer this

Use this endpoint when an AI agent needs to evaluate an indexed blockchain data query before committing to payment — especially when budget constraints, safety, or schema uncertainty make a dry-run essential. Prefer this over directly executing the query when cost unpredictability or data volume is a concern, or when operating autonomously and needing to validate query safety before proceeding.

## Known failure modes

- Invalid or unparseable query parameters return an error with no preflight result
- Unknown or unsupported chain data source may return schema discovery failure
- Query too broad or unbounded may trigger a safety flag rather than an estimate
- Network or upstream indexer unavailability may cause timeout or partial response
- Malformed query type returns classification error

## How this service works

Preflight an indexed chain-data query before payment: schema discovery, query type, estimated rows, cost fit, and safety flags.

## Output

Returns a preflight assessment including: discovered schema for the indexed data source, classified query type, estimated number of rows the query would return, cost fit evaluation relative to caller budget, and any safety flags (e.g. unbounded queries, suspicious patterns, excessive cost). No data is fetched and no payment for the underlying query is made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "query_type"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "allOf": [
        {
         "pattern": "[A-Za-z0-9]"
        }
       ],
       "example": "base",
       "pattern": "^[A-Za-z0-9:_ -]{2,80}$",
       "description": "Requested chain or CAIP-2 network label."
      },
      "query_type": {
       "enum": [
        "schema",
        "event_logs",
        "transfers",
        "balances",
        "transactions",
        "sql",
        "protocol_timeline"
       ],
       "type": "string",
       "example": "event_logs",
       "description": "Indexed data query family."
      },
      "estimated_rows": {
       "type": "string",
       "example": "5000",
       "pattern": "^[0-9]{1,10}$",
       "description": "Caller-estimated row count or result size."
      },
      "max_price_usdc": {
       "type": "string",
       "example": "0.02",
       "pattern": "^[0-9]+(?:\\.[0-9]{1,6})?$",
       "description": "Maximum acceptable query price."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "x-schema-family": "STRUCTURED_PRODUCT_RESULT",
     "x-schema-authority": "STRUCTURED_PRODUCT_RESULT",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/no-hands-ai-chain-indexed-query-preflight-57bf7a7a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nohands-coinbase-bazaar.bytoken2023.workers.dev](https://www.zero.xyz/host/nohands-coinbase-bazaar.bytoken2023.workers.dev/llms.txt)
