# Token Safety Insight — ERC-20 Contract Safety Analysis

> Token Safety Insight — ERC-20 Contract Safety Analysis is a paid API for AI agents from express-legacy-production.up.railway.app, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Returns a safety score, verdict, risk flags, and key factors for an ERC-20 token contract on supported EVM chains at the insight tier

## Facts

- Endpoint: GET https://express-legacy-production.up.railway.app/crypto/token-safety/insight
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/express-legacy-production-up-railway-app-a85b566f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HyC9lS0djVf4HpDOWkqTH

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 express-legacy-production-up-railway-app-a85b566f
```

Example prompt: Can you check whether the Ethereum token at contract address 0x6B175474E89094C44Da98b954EedeAC495271d0F is safe — give me the safety score, verdict, and any major risk flags?

## When to prefer this

Use this insight-tier endpoint (vs. the $0.001 quick tier) when you need richer safety context — including verdict explanations, key positive factors, and structured risk flags — but don't yet need the full forensic/audit-level analysis of the pro ($1.00) or analysis tiers. Ideal for pre-trade due diligence, portfolio screening, or alerting workflows where moderate depth and low cost ($0.04) are both important.

## Known failure modes

- Invalid or unsupported contract address format — returns error or empty result
- Unsupported chain value — enum validation failure
- Token not found on CoinGecko or DefiLlama — may return limited data or low confidence score
- Payment not processed (x402) — 402 Payment Required response
- Rate limiting or upstream data source unavailability — delayed or partial response

## How this service works

tokenSafety — insight tier ($0.04 USDC)

## Output

Returns a structured JSON object containing: overall safety score (0-100), verdict string (e.g. SAFE), verdict explanation, list of risk flags, key risk factors, key positive factors, token metadata (name, symbol, price, market cap), chain, contract address, whether it's listed on CoinGecko, data freshness timestamp, model used, data sources, and pointers to higher-tier upgrade paths.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lang": "en",
   "chain": "ethereum",
   "contract_address": "0x6B175474E89094C44Da98b954EedeAC495271d0F"
  }
 }
}
```

## 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": {
      "lang": {
       "enum": [
        "en",
        "ja"
       ],
       "type": "string"
      },
      "chain": {
       "enum": [
        "ethereum",
        "bsc",
        "polygon",
        "arbitrum",
        "optimism",
        "base",
        "avalanche"
       ],
       "type": "string"
      },
      "contract_address": {
       "type": "string",
       "description": "ERC-20 contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "meta",
  "chain",
  "token",
  "verdict",
  "timestamp",
  "disclaimer",
  "risk_flags",
  "safety_score",
  "contract_address",
  "key_risk_factors",
  "upgrade_available",
  "is_financial_advice",
  "verdict_explanation",
  "key_positive_factors"
 ],
 "properties": {
  "meta": {
   "type": "object",
   "required": [
    "model_used",
    "data_sources",
    "data_freshness",
    "coingecko_listed"
   ],
   "properties": {
    "model_used": {
     "type": "string"
    },
    "data_sources": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "data_freshness": {
     "type": "string"
    },
    "coingecko_listed": {
     "type": "boolean"
    }
   }
  },
  "chain": {
   "type": "string"
  },
  "token": {
   "type": "object",
   "required": [
    "name",
    "symbol",
    "price_usd",
    "market_cap_usd"
   ],
   "properties": {
    "name": {
     "type": "string"
    },
    "symbol": {
     "type": "string"
    },
    "price_usd": {
     "type": "number"
    },
    "market_cap_usd": {
     "type": "number"
    }
   }
  },
  "verdict": {
   "type": "string"
  },
  "timestamp": {
   "type": "string"
  },
  "disclaimer": {
   "type": "string"
  },
  "risk_flags": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },
  "safety_score": {
   "type": "number"
  },
  "contract_address": {
   "type": "string"
  },
  "key_risk_factors": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },
  "upgrade_available": {
   "type": "object",
   "required": [
    "pro",
    "analysis"
   ],
   "properties": {
    "pro": {
     "type": "object",
     "required": [
      "adds",
      "path",
      "price_usd"
     ],
     "properties": {
      "adds": {
       "type": "string"
      },
      "path": {
       "type": "string"
      },
      "price_usd": {
       "type": "number"
      }
     }
    },
    "analysis": {
     "type": "object",
     "required": [
      "adds",
      "path",
      "price_usd"
     ],
     "properties": {
      "adds": {
       "type": "string"
      },
      "path": {
       "type": "string"
      },
      "price_usd": {
       "type": "number"
      }
     }
    }
   }
  },
  "is_financial_advice": {
   "type": "boolean"
  },
  "verdict_explanation": {
   "type": "string"
  },
  "key_positive_factors": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/express-legacy-production-up-railway-app-a85b566f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from express-legacy-production.up.railway.app](https://www.zero.xyz/host/express-legacy-production.up.railway.app/llms.txt)
