# SpendPreflight Token Check

> SpendPreflight Token Check is a paid API for AI agents from api.spendpreflight.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-21).

Returns on-chain contract signals for a token address to help AI agents assess stablecoin payment risk before executing a transaction

## Facts

- Endpoint: GET https://api.spendpreflight.com/v1/token-check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spendpreflight-token-check-1b712faa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D4VCGON2AqLiJkPwj8Srr

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 spendpreflight-token-check-1b712faa
```

Example prompt: Before you process this USDC payment, run a preflight check on the token contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and tell me the OFAC status, bytecode signals, owner, paused state, and proxy details.

## When to prefer this

Use this endpoint when an AI agent needs contract-level signal data before executing a stablecoin payment, especially in automated or agentic payment flows where human review is absent. Prefer it over generic blockchain explorers when you need structured, machine-readable OFAC and bytecode signals specifically designed for agent consumption. Best suited for per-payment pre-flight checks rather than ongoing monitoring.

## Known failure modes

- Token contract address not found on the specified chain — returns unknown signals
- OFAC data temporarily unavailable — affected field returned as unknown
- Invalid or malformed contract address — 400 error
- Payment required not fulfilled (x402) — 402 error
- Rate limit exceeded — 429 error
- Network timeout fetching on-chain data — partial results with unknown fields

## How this service works

SpendPreflight — trust and verification tools for stablecoin payments, built for AI agents and the people who run them. Base contract signals, not a safety verdict. Basic: bytecode/OFAC. Deep adds owner, paused, supply/decimals, proxy slots, minimal-proxy target and bounded source/deployment evidence. Honeypot/sellability, mint/blacklist powers, liquidity locks, holders and scam lists are unassessed. Missing data stays unknown; never safe-to-buy. Informational, not financial advice.

## Output

Returns a structured set of on-chain contract signals including basic checks (bytecode analysis, OFAC sanctions screening) and deep checks (owner address, paused state, total supply, decimals, proxy slot contents, minimal-proxy target, source/deployment evidence). Missing data is flagged as unknown rather than assumed safe. Does not return a final safety verdict or financial recommendation.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spendpreflight-token-check-1b712faa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.spendpreflight.com](https://www.zero.xyz/host/api.spendpreflight.com/llms.txt)
