# Base Token Alpha Snapshot — Risk Scoring for ERC-20 Tokens on Base

> Base Token Alpha Snapshot — Risk Scoring for ERC-20 Tokens on Base is a paid API for AI agents from base-agent-preflight.bytoken2023.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns a risk score, risk level, and flag assessment for a given ERC-20 token address on the Base network, helping AI agents screen tokens before making payments.

## Facts

- Endpoint: GET https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/base/token-alpha-snapshot
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-token-alpha-snapshot-risk-scoring-for-erc-20-tokens-on-base-6bafdd36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5jQFOdkVgf4AwDKZdLZV0

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-token-alpha-snapshot-risk-scoring-for-erc-20-tokens-on-base-6bafdd36
```

Example prompt: Before my agent sends payment, can you run a risk snapshot on the Base token at address 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA and tell me if it's flagged or what its risk score is?

## When to prefer this

Use this endpoint when an AI agent needs a fast, pre-payment risk check on a specific ERC-20 token on the Base network before executing a transaction. Prefer this over generic block explorers when you need a structured, machine-readable risk score and flag set specifically designed for autonomous agent payment workflows.

## Known failure modes

- Missing or malformed token address (not a valid 0x... 40-hex-char address) results in a 400 or validation error
- Token address not found or not indexed on Base returns empty or default assessment
- Payment not provided or x402 payment rejected returns 402 Payment Required
- Rate limiting or worker timeout returns 429 or 5xx
- Token exists but has no on-chain activity, resulting in minimal signal and a zero risk score with empty flags

## 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

A JSON object containing the network identifier (eip155:8453), product name (base-token-alpha-snapshot), and an assessment object with a numeric risk_score, a risk_level string (e.g. 'low'), and an array of flags indicating any detected issues with the token.

## 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",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "Base ERC-20 token address to score."
      }
     }
    }
   },
   "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": "base-token-alpha-snapshot",
  "assessment": {
   "flags": [],
   "risk_level": "low",
   "risk_score": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-token-alpha-snapshot-risk-scoring-for-erc-20-tokens-on-base-6bafdd36/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)
