# Token Risk Analyzer (Base Chain)

> Token Risk Analyzer (Base Chain) is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Runs a multi-check security and risk analysis on an ERC-20 token contract address on Base, returning results for proxy upgradability, ownership, transfer taxes, liquidity, buy/sell simulation, and privileged functions.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/token-risk?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-risk-analyzer-base-chain-d7bc90d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a-2q8EjeLxNgM7jyZX1jT

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 token-risk-analyzer-base-chain-d7bc90d7 -d '<json body>'
```

Example prompt: Can you run a full risk check on the token at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 on Base — I want to know if it's upgradeable, whether ownership is renounced, if there are any transfer taxes, and whether buy/sell simulations pass?

## When to prefer this

Choose this endpoint when you need a comprehensive, on-chain risk assessment of a specific ERC-20 token on Base, covering contract security, ownership, taxes, liquidity, and behavioral simulation in a single call. Prefer this over block explorers or manual checks when you need structured, machine-readable risk signals that an AI agent can act on automatically. Best suited for pre-trade safety gates, token listing pipelines, or DeFi automation workflows on Base.

## Known failure modes

- Invalid or non-ERC-20 contract address returns error or failed checks
- Token not deployed on Base returns empty or error response
- Token with no liquidity pool causes buy/sell simulation failures
- RPC node lag may cause stale block results
- HTTP 402 returned if payment not attached — must pay 0.005 USDC via x402 on Base before retry

## How this service works

41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.

## Output

A JSON object containing a 'checks' dictionary with named risk checks (proxy, ownership, transfer_tax, contract_code, buy_simulation, sell_simulation, erc20_metadata, liquidity_pool, privileged_functions). Each check has a 'result' field ('pass', 'warn', or 'fail') and an 'evidence' object with detailed findings. Also includes the block number, chain, RPC used, and the token address analyzed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base"
   ],
   "type": "string",
   "default": "base"
  },
  "token": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rpc": "mainnet.base.org",
  "block": 52494540,
  "chain": "base",
  "skill": "token_risk",
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "checks": {
   "proxy": {
    "result": "warn",
    "evidence": {
     "note": "upgradeable: whoever controls the proxy can replace the token's code",
     "admin": "0x4fc7850364958d97b4d3f5a08f79db2493f8ca44",
     "standard": "zeppelinos (legacy unstructured storage)",
     "implementation": "0x2ce6311ddae708829bc0784c967b7d77d19fd779"
    }
   },
   "ownership": {
    "result": "warn",
    "evidence": {
     "owner": "0x3abd6f64a422225e61e435bae41db12096106df7",
     "function": "owner()",
     "renounced": false
    }
   },
   "transfer_tax": {
    "result": "pass",
    "evidence": {
     "note": "token-side transfer tax only; AMM/pool fees are not included",
     "buy_tax_pct": 0,
     "sell_tax_pct": 0
    }
   },
   "contract_code": {
    "result": "pass",
    "evidence": {
     "block": 52494540,
     "bytecode_bytes": 1852
    }
   },
   "buy_simulation": {
    "result": "pass",
    "evidence": {
     "pool": "0x6c561b446416e1a00e8e93e221854d6ea4171372",
     "amount": "76072526114",
     "method": "eth_simulateV1 transfer leg",
     "received": "76072526114",
     "balance_slot": "solidity:9"
    }
   },
   "erc20_metadata": {
    "result": "pass",
    "evidence": {
     "name": "USD Coin",
     "symbol": "USDC",
     "missing": [],
     "decimals": 6,
     "total_supply": "4419304031200909"
    }
   },
   "liquidity_pool": {
    "result": "pass",
    "evidence": {
     "dex": "uniswap_v3",
     "pool": "0x6c561b446416e1a00e8e93e221854d6ea4171372",
     "variant": "fee 3000",
     "pools_found": 7,
     "quote_token": "WETH",
     "quote_balance": "29060996929756341666149",
     "token_balance": "76072526114911",
     "thin_liquidity": false
    }
   },
   "sell_simulation": {
    "result": "pass",
    "evidence": {
     "pool": "0x6c561b446416e1a00e8e93e221854d6ea4171372",
     "amount": "76072526114",
     "method": "eth_simulateV1 transfer leg",
     "received": "76072526114",
     "balance_slot": "solidity:9"
    }
   },
   "privileged_functions": {
    "result": "warn",
    "evidence": {
     "note": "selector presence only; who may call them is not checked",
     "found": {
      "mint": [
       "configureMinter(address,uint256)",
       "mint(address,uint256)"
      ],
      "pause": [
       "pause()",
       "unpause()"
      ],
      "blac
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-risk-analyzer-base-chain-d7bc90d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
