# Base Intel API — Transaction Preflight

> Base Intel API — Transaction Preflight is a paid API for AI agents from base-intel-api.jakemaxsigal.workers.dev, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-09).

Returns an ALLOW, WARN, or BLOCK trade-risk decision for a Base token by combining on-chain contract safety analysis with live DEX liquidity and 24-hour activity data.

## Facts

- Endpoint: GET https://base-intel-api.jakemaxsigal.workers.dev/preflight?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-intel-api-transaction-preflight-74ef75dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3x_rSMifC3g3GW3qo4R79

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 base-intel-api-transaction-preflight-74ef75dc
```

Example prompt: Before my agent swaps into this token, can you run a preflight risk check on Base contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tell me if it's an ALLOW, WARN, or BLOCK?

## When to prefer this

Choose this endpoint when an AI agent or autonomous trading bot needs a single-call, structured go/no-go decision before executing a token swap or DeFi interaction on Base. It is purpose-built for Base L2 and combines contract heuristics with live DEX liquidity in one response, making it faster and more actionable than assembling raw on-chain data yourself. Prefer it over generic blockchain APIs when you need an opinionated ALLOW/WARN/BLOCK verdict with human-readable reasons.

## Known failure modes

- Missing or invalid token address returns an error — token query param is required
- Unrecognized or non-Base contract address may return limited data or error
- Payment not completed via x402 returns 402 Payment Required
- Rate limiting or downstream DEX data unavailability may cause transient failures
- Very new tokens with no DEX history may have incomplete market data

## How this service works

One-call ALLOW, WARN, or BLOCK trade-risk decisions for Base agents, combining contract safety with live DEX liquidity and activity. Paid per result in USDC over x402.

## Output

A JSON object containing: a top-level decision field (ALLOW, WARN, or BLOCK), a numeric risk score (0–100), a riskLevel string (low/medium/high), a token object with address, symbol, grade (A–F), safetyScore, and flags array, a market object with pairCount, maxLiquidityUsd, and totalVolume24hUsd, a reasons array explaining the decision, and a methodology description.

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Base token contract address to screen."
      },
      "wallet": {
       "type": "string",
       "description": "Optional Base wallet address for informational context."
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "score": {
       "type": "number"
      },
      "token": {
       "type": "object",
       "properties": {
        "flags": {
         "type": "array",
         "items": {}
        },
        "grade": {
         "type": "string"
        },
        "symbol": {
         "type": "string"
        },
        "address": {
         "type": "string"
        },
        "safetyScore": {
         "type": "number"
        }
       }
      },
      "market": {
       "type": "object",
       "properties": {
        "pairCount": {
         "type": "number"
        },
        "maxLiquidityUsd": {
         "type": "number"
        },
        "totalVolume24hUsd": {
         "type": "number"
        }
       }
      },
      "reasons": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "decision": {
       "type": "string"
      },
      "riskLevel": {
       "type": "string"
      },
      "methodology": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": 68,
  "token": {
   "flags": [],
   "grade": "C",
   "symbol": "USDC",
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "safetyScore": 55
  },
  "market": {
   "pairCount": 12,
   "maxLiquidityUsd": 5000000,
   "totalVolume24hUsd": 1200000
  },
  "reasons": [
   "Contract is upgradeable and can change after this check.",
   "At least one Base liquidity pool exceeds $100,000."
  ],
  "decision": "WARN",
  "riskLevel": "medium",
  "methodology": "Contract heuristics plus live Base DEX liquidity and 24-hour activity."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-intel-api-transaction-preflight-74ef75dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-intel-api.jakemaxsigal.workers.dev](https://www.zero.xyz/host/base-intel-api.jakemaxsigal.workers.dev/llms.txt)
