# Base Token Safety Snapshot (x402)

> Base Token Safety Snapshot (x402) is a paid API for AI agents from base-token-safety-x402.grokbot-hk.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Returns a heuristic safety snapshot of a Base ERC-20 token, including bytecode checks, proxy detection, mint/blacklist/pause function scans, and liquidity pool data, paid via x402 micropayment.

## Facts

- Endpoint: GET https://base-token-safety-x402.grokbot-hk.workers.dev/token/%7Baddress%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-token-safety-snapshot-x402-8ef98095
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vk-Hr_mWRhrc6V--uxiTu

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 base-token-safety-snapshot-x402-8ef98095
```

Example prompt: Can you run a safety check on the Base ERC-20 token at address 0xBA3F945812a83471d709BCe9C3CA699A19FB46f7 and tell me if it has any red flags like mint functions, blacklists, or unrenounced ownership?

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.01 USDC) heuristic safety snapshot of a specific Base ERC-20 token before trading or investing. It is ideal for agents doing pre-trade due diligence on Base network tokens, especially meme coins or new DeFi tokens. Prefer this over full smart contract audit services when speed and cost matter more than exhaustive analysis, and when you only need publicly-readable on-chain signals rather than source code review.

## Known failure modes

- Invalid or non-existent contract address returns an error
- Non-ERC-20 contract may fail interface checks
- Missing x402 payment header returns 402 Payment Required
- RPC timeout or Base network congestion may delay or fail the response
- Heuristic checks may miss custom or obfuscated dangerous functions
- Proxy contracts with non-standard patterns may not be detected

## How this service works

Heuristic safety snapshot of a Base ERC-20 from public RPC data. $0.01 USDC per call via x402 on Base.

## Output

A JSON object containing: token metadata (name, symbol, decimals, total supply), a list of liquidity pools with approximate USD liquidity across DEXes (Uniswap v3, Aerodrome), and a set of heuristic safety checks each with a status of pass/warn/fail. Checks include: contract bytecode presence, proxy pattern detection, ERC-20 interface compliance, mint function presence, blacklist function presence, pause/trading-toggle functions, fee/tax setter functions, transfer limit functions, and ownership/renouncement status. Also includes RPC request count and response timing metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "note": "EXAMPLE snapshot captured once for illustration; not live",
   "took_ms": 250,
   "version": "0.1.0",
   "generated_at": "2026-10-10T00:00:00.000Z",
   "rpc_requests": 8
  },
  "chain": "base",
  "pools": [
   {
    "dex": "uniswap_v3",
    "pool": "0xBA3F945812a83471d709BCe9C3CA699A19FB46f7",
    "quote": "WETH",
    "pool_param": "10000",
    "approx_liquidity_usd": 1516851
   },
   {
    "dex": "aerodrome_slipstream",
    "pool": "0x4e829F8A5213c42535AB84AA40BD4aDCCE9cBa02",
    "quote": "WETH",
    "pool_param": "tickSpacing=200",
    "approx_liquidity_usd": 765005
   },
   {
    "dex": "uniswap_v3",
    "pool": "0x76Bf0abD20f1e0155Ce40A62615a90A709a6C3D8",
    "quote": "WETH",
    "pool_param": "3000",
    "approx_liquidity_usd": 80895
   }
  ],
  "token": {
   "name": "Brett",
   "symbol": "BRETT",
   "decimals": 18,
   "total_supply": "9999997544.340006",
   "total_supply_raw": "9999997544340006294456944163"
  },
  "checks": [
   {
    "id": "is_contract",
    "data": {
     "bytes": 23271
    },
    "detail": "Contract with 23271 bytes of runtime code.",
    "status": "pass"
   },
   {
    "id": "proxy",
    "detail": "No EIP-1967 / legacy-zOS / EIP-1167 proxy pattern detected (custom proxy patterns are not detected).",
    "status": "pass"
   },
   {
    "id": "erc20_interface",
    "detail": "Responds to decimals() and totalSupply() like an ERC-20.",
    "status": "pass"
   },
   {
    "id": "mint_functions",
    "data": [],
    "detail": "No common mint selectors found (heuristic).",
    "status": "pass"
   },
   {
    "id": "blacklist_functions",
    "data": [],
    "detail": "No common blacklist selectors found (heuristic).",
    "status": "pass"
   },
   {
    "id": "pause_trading_functions",
    "data": [
     "enableTrading()"
    ],
    "detail": "Pause/trading-toggle selectors present (enableTrading()).",
    "status": "warn"
   },
   {
    "id": "fee_tax_functions",
    "data": [
     "excludeFromFees(address,bool)"
    ],
    "detail": "Fee/tax setter or exemption selectors present (excludeFromFees(address,bool)); transfer fees may be configurable.",
    "status": "warn"
   },
   {
    "id": "limit_functions",
    "data": [
     "removeLimits()"
    ],
    "detail": "Max-tx/wallet/cooldown selectors present (removeLimits()).",
    "status": "warn"
   },
   {
    "id": "ownership",
    "data": {
     "owner": "0x0000000000000000000000000000000000000000",
     "renounced": true
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-token-safety-snapshot-x402-8ef98095/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-token-safety-x402.grokbot-hk.workers.dev](https://www.zero.xyz/host/base-token-safety-x402.grokbot-hk.workers.dev/llms.txt)
