# TokenGuard ERC-20 Rug/Safety Scanner

> TokenGuard ERC-20 Rug/Safety Scanner is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Performs a heuristic safety check on an ERC-20 token contract to detect rug pull indicators and dangerous functions, returning a risk score and categorized findings.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/scan
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-erc-20-rug-safety-scanner-9de3f754
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tqRl9qVv0B-P_nyqAGzYq

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 tokenguard-erc-20-rug-safety-scanner-9de3f754 -d '<json body>'
```

Example prompt: Can you do a rug pull safety scan on this ERC-20 token contract — 0x1234abcd...ef on Base — and tell me the risk score, risk level, and any dangerous functions it found?

## When to prefer this

Use this endpoint when you need a quick, automated heuristic assessment of an ERC-20 token's rug pull risk before a trade or investment decision, especially on Base. It is well-suited for agents that need a lightweight, per-token safety gate without requiring a full audit service. Prefer this over manual code review when speed and cost (fractions of a cent) matter.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty findings
- Network/RPC unavailability causes timeout or 5xx error
- Non-ERC-20 contract address may return misleading or empty results
- Rate limiting or payment failure (x402) if USDC micropayment is not properly attached
- Contract deployed on unsupported chain returns error

## How this service works

Rug/safety scan of an ERC-20 token: mint, blacklist, pausable, tax, upgradeable-proxy, ownership.

## Output

Returns a JSON object with a risk_level string (e.g. 'dangerous', 'safe'), an integer risk_score (0-100), a total_findings count, and a findings array where each entry has an id (function selector), title (e.g. 'Dangerous function: addBlackList(address)'), and severity (e.g. 'high', 'medium', 'low').

## Example request

```json
{
 "input": {
  "body": {
   "chain": "ethereum",
   "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "arbitrum",
    "optimism",
    "polygon",
    "bsc"
   ],
   "type": "string",
   "description": "Chain (default base)"
  },
  "address": {
   "type": "string",
   "description": "ERC-20 contract address (0x…40 hex)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "findings": [
   {
    "id": "selector_0ecb93c0",
    "title": "Dangerous function: addBlackList(address)",
    "severity": "high"
   }
  ],
  "risk_level": "dangerous",
  "risk_score": 86,
  "total_findings": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-erc-20-rug-safety-scanner-9de3f754/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
