# Token Preflight Risk Check

> Token Preflight Risk Check is a paid API for AI agents from agents.crowdspark.me, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-31).

Checks a token contract on Base/Ethereum/Optimism/Arbitrum/Polygon for structure, risk score, and simulated ERC20 transfer gas cost before swapping, listing, or paying with it.

## Facts

- Endpoint: GET https://agents.crowdspark.me/v1/bundle/token-preflight?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-preflight-risk-check-7b4471de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JyKxOxQx8rCnLKKmswqPl

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 token-preflight-risk-check-7b4471de
```

Example prompt: Before we swap into this token, run a preflight check on contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — give me the risk score, any proxy or owner flags, and what an ERC20 transfer would cost in gas.

## When to prefer this

Use this endpoint when an AI agent needs a quick structural safety check on a token contract before executing a swap, payment, or listing — especially when operating autonomously on Base, Ethereum, Optimism, Arbitrum, or Polygon. It provides a scored, human-readable risk summary and gas simulation in a single call, making it ideal for pre-trade or pre-integration due diligence. It is NOT a honeypot detector; prefer dedicated honeypot audit tools if that is the primary concern.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty result
- Unsupported chain value returns a validation error
- Rate limit exceeded if free tier (25/day) is exhausted and no payment header is present
- RPC node timeout may cause delayed or failed response for some chains
- Non-token contract addresses (e.g. EOAs or non-ERC20 contracts) may return null standard or unexpected risk flags

## How this service works

Pay-per-call utilities for AI agents over x402, USDC on Base.

## Output

Returns a JSON object containing: (1) token metadata — chain, symbol, decimals, and detected standard (e.g. ERC20); (2) risk object — numeric score 0–100, level (low/medium/high), and an array of human-readable reasons explaining the score; (3) transfer_gas — estimated gas units and cost in USD for a simulated ERC20 transfer at standard fee tier.

## 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": [
      "address"
     ],
     "properties": {
      "from": {
       "type": "string",
       "description": "Optional holder address for a realistic transfer simulation"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "optimism",
        "arbitrum",
        "polygon"
       ],
       "type": "string",
       "description": "Default base"
      },
      "address": {
       "type": "string",
       "description": "Token contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risk": {
   "level": "medium",
   "score": 30,
   "reasons": [
    "upgradeable or proxy contract (zeppelinos (legacy unstructured storage))",
    "has an owner address"
   ]
  },
  "token": {
   "chain": "base",
   "symbol": "USDC",
   "decimals": 6,
   "standard": "ERC20"
  },
  "transfer_gas": {
   "fees": [
    {
     "tier": "standard",
     "est_cost_usd": 0.00065
    }
   ],
   "gas_units": "45415"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-preflight-risk-check-7b4471de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.crowdspark.me](https://www.zero.xyz/host/agents.crowdspark.me/llms.txt)
