# Grey Ridge Signals — Token Security Analyzer (Base)

> Grey Ridge Signals — Token Security Analyzer (Base) is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-16).

Returns a comprehensive security analysis of any ERC-20 token contract on Base mainnet, including risk flags, proxy details, ownership info, capabilities, and a honeypot simulation result.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/chain/token-security
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grey-ridge-signals-token-security-analyzer-base-17d1bb55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XUNdJJ9WRPHXryO1GbX4g

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 grey-ridge-signals-token-security-analyzer-base-17d1bb55
```

Example prompt: Can you run a security check on the USDC token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — I want to know the risk score, any red flags like blacklisting or minting powers, and whether ownership has been renounced?

## When to prefer this

Choose this endpoint when you need a rapid, on-demand security audit of any ERC-20 token on Base mainnet without API key setup. It is ideal for agents performing pre-trade due diligence, DeFi risk screening, or portfolio analysis pipelines. It is pay-per-call ($0.02 USDC) via x402, requiring no signup, making it well-suited for automated or infrequent lookups. Prefer alternatives if you need multi-chain support or deeper bytecode-level auditing.

## Known failure modes

- Invalid or malformed token address returns an error — must be a valid 0x-prefixed 20-byte hex address
- Token not deployed on Base mainnet returns no contract data
- Honeypot simulation may return 'unavailable' if storage slot layout is non-standard
- Payment failure via x402 protocol results in 402 response with no data
- Rate limiting or worker timeout may return a 5xx error for complex contracts

## How this service works

Token security / honeypot detector for a Base mainnet ERC-20: EIP-1967/1822 proxy + upgradeability detection, bytecode dispatcher scan for mint/pause/blacklist/fee-setter/ownership selectors, owner() renouncement check, and a live eth_call state-override simulation testing whether a synthetic wallet can actually transfer() the token. Returns risk_score (0-100) + verdict (clear/review/block) + human-readable flags.

## Output

A JSON object containing: token metadata (name, symbol, decimals, total supply), chain identifier, a list of human-readable risk flags, proxy details (is_proxy, admin address, implementation address, upgradeability), ownership info (owner address, type, renounced status), token capabilities (can_mint, can_burn, can_pause, has_blacklist, etc.), a honeypot simulation result with transferability status, an overall risk_score (0–100), a verdict string ('review', 'safe', 'risky'), and a timestamp of analysis.

## 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",
     "properties": {
      "token": {
       "type": "string",
       "description": "0x-prefixed 20-byte ERC-20 contract address on Base mainnet"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "name": "USD Coin",
   "symbol": "USDC",
   "decimals": 6,
   "total_supply_raw": "4268653465618984",
   "total_supply_formatted": 4268653465.618984
  },
  "chain": "base",
  "flags": [
   "upgradeable proxy (OZ zOS AdminUpgradeabilityProxy (pre-EIP-1967)) — contract logic can be changed by the admin after you hold this token",
   "owner/admin can mint unlimited new supply",
   "has a blacklist function — holders can be blocked from transferring",
   "contract can be paused — the owner can freeze all transfers",
   "ownership not renounced — a privileged admin account still controls this contract"
  ],
  "proxy": {
   "is_proxy": true,
   "admin_address": "0x4fc7850364958d97b4d3f5a08f79db2493f8ca44",
   "is_upgradeable": true,
   "proxy_standard": "OZ zOS AdminUpgradeabilityProxy (pre-EIP-1967)",
   "implementation_address": "0x2ce6311ddae708829bc0784c967b7d77d19fd779"
  },
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "verdict": "review",
  "ownership": {
   "owner": "0x3abd6f64a422225e61e435bae41db12096106df7",
   "owner_type": "eoa",
   "ownership_renounced": false
  },
  "risk_score": 65,
  "analyzed_at": "2026-07-17T04:12:15.519Z",
  "is_contract": true,
  "capabilities": {
   "can_burn": true,
   "can_mint": true,
   "can_pause": true,
   "has_blacklist": true,
   "has_ownership": true,
   "has_fee_setter": false,
   "scanned_address": "0x2ce6311ddae708829bc0784c967b7d77d19fd779",
   "detected_selectors": [
    {
     "category": "can_mint",
     "selector": "0x40c10f19",
     "signature": "mint(address,uint256)"
    }
   ]
  },
  "honeypot_sim": {
   "note": "Could not locate this token's balance storage slot by probing simple mapping(address=>uint256) layouts (slots 0-3).",
   "method": "…",
   "sim_status": "unavailable",
   "transferable": null,
   "revert_reason": null,
   "balance_slot_index": null
  },
  "risk_summary": "5 risk flag(s) detected. Risk 65/100."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grey-ridge-signals-token-security-analyzer-base-17d1bb55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
