# BaseShield Token Security Oracle

> BaseShield Token Security Oracle is a paid API for AI agents from baseshield-x402.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-18).

Performs deterministic on-chain honeypot detection, privilege inspection, and risk scoring for ERC-20 tokens on Base mainnet

## Facts

- Endpoint: POST https://baseshield-x402.vercel.app/v1/token-security
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baseshield-token-security-oracle-662c3792
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QbBx_qYqyeXnfbPQNkgQK

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 baseshield-token-security-oracle-662c3792 -d '<json body>'
```

Example prompt: Before I buy this token, can you run a honeypot and risk check on the Base contract at 0x1234567890abcdef1234567890abcdef12345678 and tell me if it's safe?

## When to prefer this

Choose this endpoint when you need fast, deterministic, on-chain security screening for ERC-20 tokens specifically on Base mainnet — particularly for honeypot detection and privilege inspection. Prefer it over generic static analysis tools when you need a risk score and structured warnings at point-of-trade for a live Base contract. Best suited for DeFi bots, token launchpad pipelines, or wallet UIs that need a low-cost ($0.02) automated safety gate before executing a swap or listing.

## Known failure modes

- Invalid or malformed contract address returns an error response
- Contract address not deployed on Base mainnet may return no data or an error
- Token with unverified bytecode may yield incomplete inspection results
- Payment failure via x402 prevents the call from being processed
- Rate limiting or vercel cold-start delays may cause timeout

## How this service works

Deterministic on-chain honeypot detection, privilege inspection, and risk scoring on Base mainnet, payable via x402.

## Output

Returns a JSON object with a boolean success flag, a plain-language verdict string, an integer risk score (presumably 0–100), and an array of warning strings describing specific detected risks such as honeypot patterns, dangerous owner privileges, or blacklist functions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token_address"
 ],
 "properties": {
  "token_address": {
   "type": "string",
   "description": "Base ERC-20 contract address to screen (0x...)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "success": {
   "type": "boolean"
  },
  "verdict": {
   "type": "string"
  },
  "warnings": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "risk_score": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baseshield-token-security-oracle-662c3792/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baseshield-x402.vercel.app](https://www.zero.xyz/host/baseshield-x402.vercel.app/llms.txt)
