# TokenGuard ERC-20 Token Safety Brief

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

Analyzes an ERC-20 token contract for safety risks, returning a verdict, risk score, top flags, and liquidity data

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/brief/token
- Price: $0.05/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-token-safety-brief-1cf0c8d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XKg6E12x4FlDMGk3dfi_6

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-token-safety-brief-1cf0c8d7 -d '<json body>'
```

Example prompt: Can you run a safety check on the ERC-20 token at address 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base — I want to know the risk score, any dangerous functions like blacklisting, and whether there's enough liquidity to exit safely.

## When to prefer this

Use this endpoint when you need a fast, structured risk brief on a specific ERC-20 token before a trade, investment, or DeFi interaction — especially when you want a single verdict plus actionable flags like blacklist functions or thin liquidity. Prefer it over generic blockchain explorers when you need a machine-readable risk score and plain-language flags rather than raw contract data.

## Known failure modes

- Invalid or non-existent contract address returns error or empty analysis
- Unsupported chain returns error (default is Base)
- Token with no on-chain data may return incomplete risk assessment
- CoinGecko ID mismatch results in missing developer activity data
- Rate limiting or payment failure (x402) blocks the request

## How this service works

One-call token due diligence: structural rug/safety scan, live liquidity and market depth, optional dev activity, resolved into a single ok/caution/avoid verdict with the flags that drove it.

## Output

Returns a JSON object with: a verdict string (e.g. 'avoid'), a risk_level label (e.g. 'high'), a numeric risk_score (0-100), a list of top_flags describing specific dangers (e.g. dangerous contract functions, thin liquidity warnings), a liquidity_usd figure, and a thin_liquidity boolean.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain (default base)"
  },
  "address": {
   "type": "string",
   "description": "ERC-20 contract address"
  },
  "coingecko_id": {
   "type": "string",
   "description": "Optional CoinGecko id for dev activity"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "verdict": "avoid",
  "top_flags": [
   "Dangerous function: addBlackList(address)",
   "thin liquidity — exit may not be possible at quoted price"
  ],
  "risk_level": "high",
  "risk_score": 72,
  "liquidity_usd": 14200,
  "thin_liquidity": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-erc-20-token-safety-brief-1cf0c8d7/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)
