# ERC20 Pre-Trade Safety Check

> ERC20 Pre-Trade Safety Check is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Analyzes ERC20 token contracts on major EVM chains for dangerous capabilities (mint, pause, blacklist, upgradeable proxy, mutable taxes) and ownership status using live bytecode and on-chain state.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/token-safety
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc20-pre-trade-safety-check-c92ee773
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mjK0zd75zqLFVHxf7GLaI

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 erc20-pre-trade-safety-check-c92ee773 -d '<json body>'
```

Example prompt: Before I buy this token, can you run a safety check on the ERC20 contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I want to know if it has mint powers, a blacklist, pause functions, or if ownership is still held by someone?

## When to prefer this

Choose this endpoint when you need deterministic, evidence-backed smart contract risk analysis rather than an LLM-generated opinion. It is ideal for pre-trade screening, DeFi integration due diligence, or automated portfolio monitoring on Base, Ethereum, Polygon, Arbitrum, or Optimism. Unlike narrative audit summaries, it returns the exact bytecode selectors and offsets so agents can apply their own risk policy thresholds.

## Known failure modes

- Address is not a deployed contract — isContract returns false
- Address is not an ERC20 token — isERC20 returns false
- Unsupported chain specified — request rejected
- Invalid or malformed contract address — bad request error
- RPC node unavailable for the target chain — service error
- Token uses non-standard proxy pattern not detectable from bytecode alone

## How this service works

60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.

## Output

Returns a JSON object with the token name, symbol, chain, contract address, a numeric risk score, a categorical risk rating, a boolean for whether ownership is renounced, an array of findings (each with the exact selector and byte offset detected in bytecode), a boolean confirming it is a contract and ERC20, and a list of analysis limitations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "base | ethereum | polygon | arbitrum | optimism."
  },
  "token": {
   "type": "string",
   "description": "ERC20 contract address to check."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  },
  "risk": {
   "type": "string"
  },
  "chain": {
   "type": "string"
  },
  "score": {
   "type": "number"
  },
  "token": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "isERC20": {
   "type": "boolean"
  },
  "findings": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "isContract": {
   "type": "boolean"
  },
  "limitations": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "ownershipRenounced": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc20-pre-trade-safety-check-c92ee773/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
