# Agent Buyer Identity Preflight | x402 Chain Data Route Plan

> Agent Buyer Identity Preflight | x402 Chain Data Route Plan is a paid API for AI agents from base-agent-preflight.bytoken2023.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Evaluates whether an AI agent buyer is authorized and suitable to purchase a chain-data routing product via x402, returning a risk assessment with flags and risk score.

## Facts

- Endpoint: GET https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/chain-data-route-plan
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-buyer-identity-preflight-x402-chain-data-route-plan-0ea6990b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uTQh_dwIimm8qm3b0XHuH

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 agent-buyer-identity-preflight-x402-chain-data-route-plan-0ea6990b
```

Example prompt: Before you buy that Base chain RPC data feed for up to $2.00 USDC, run a preflight check to see if I'm eligible and what the risk level is — the task is fetching indexed transaction logs, low risk tolerance, on eip155:8453.

## When to prefer this

Use this endpoint when an AI agent is about to make an x402 micropayment for a blockchain data product and needs to verify buyer eligibility, policy compliance, and risk posture before committing funds. Prefer this over generic identity checks when the purchase specifically involves chain data (RPC, logs, traces, indexed, SQL, fork, or mixed) and you need a structured risk score and flag set tied to the x402 purchase governance framework.

## Known failure modes

- Missing required query parameters (task or chain) returns a validation error
- Unsupported chain label format (not matching CAIP-2 pattern) causes a 400-level error
- budget_usdc not matching numeric pattern causes schema rejection
- Service unavailability on Cloudflare Workers returns 5xx
- Unknown or unsupported data_need enum value causes parameter rejection

## How this service works

Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.

## Output

Returns a JSON object containing the network identifier, product name, a risk assessment object with a risk_level (e.g. 'low'), numeric risk_score, and an array of flags indicating any policy violations or concerns, plus identity and provenance sub-objects.

## 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": [
      "task",
      "chain"
     ],
     "properties": {
      "task": {
       "type": "string",
       "maxLength": 500,
       "minLength": 3,
       "description": "Natural-language chain-data task."
      },
      "chain": {
       "type": "string",
       "pattern": "^[A-Za-z0-9:_ -]{2,80}$",
       "description": "Requested chain or CAIP-2 network label."
      },
      "data_need": {
       "enum": [
        "rpc",
        "logs",
        "storage",
        "trace",
        "indexed",
        "sql",
        "fork",
        "mixed"
       ],
       "type": "string",
       "description": "Primary data access shape."
      },
      "budget_usdc": {
       "type": "string",
       "pattern": "^[0-9]+(?:\\.[0-9]{1,6})?$",
       "description": "Maximum planned spend for this route."
      },
      "risk_tolerance": {
       "enum": [
        "low",
        "medium",
        "high"
       ],
       "type": "string",
       "description": "How much uncertainty the buyer can tolerate."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "network": {
       "type": "string"
      },
      "product": {
       "type": "string"
      },
      "activity": {
       "type": "object"
      },
      "identity": {
       "type": "object"
      },
      "assessment": {
       "type": "object"
      },
      "provenance": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "eip155:8453",
  "product": "agent-chain-data-route-plan",
  "assessment": {
   "flags": [],
   "risk_level": "low",
   "risk_score": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-buyer-identity-preflight-x402-chain-data-route-plan-0ea6990b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-agent-preflight.bytoken2023.workers.dev](https://www.zero.xyz/host/base-agent-preflight.bytoken2023.workers.dev/llms.txt)
