# Nightshift Labs ERC-20 Token Check

> Nightshift Labs ERC-20 Token Check is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Returns security flags, risk heuristics, and metadata for an ERC-20 token contract on the Base blockchain

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/base/token-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-labs-erc-20-token-check-545d41c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Eye6kAxQBOro5K2nLXeUM

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 nightshift-labs-erc-20-token-check-545d41c5
```

Example prompt: Can you check the security flags for the token at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base — I want to know if it's an upgradeable proxy, has a blacklist, or any elevated risk before I swap into it?

## When to prefer this

Use this endpoint when an AI agent needs to quickly assess the security posture of an ERC-20 token on the Base network before executing a swap, investment, or integration. It is purpose-built for Base and returns structured, machine-readable security flags ideal for automated decision-making. Prefer this over generic blockchain explorers when you need programmatic risk flags (blacklist, mint function, upgradeability) rather than raw contract source code or transaction history.

## Known failure modes

- Invalid or malformed contract address (not matching ^0x[0-9a-fA-F]{40}$) returns a validation error
- Address is a valid hex address but not a deployed ERC-20 contract on Base may return empty or error response
- Payment not provided or insufficient USDC on Base triggers HTTP 402 payment required
- Contract is self-destructed or not on Base mainnet may yield incomplete data
- Rate limiting or worker downtime may return 5xx errors

## How this service works

Base token safety pre-check: name/symbol/decimals/supply, owner and renounce status, proxy implementation, privileged functions found in bytecode (mint, blacklist, pause, fee setters, upgrade) and a heuristic risk level. Call before buying or accepting an unknown token on Base.

## Output

Returns a JSON object containing the chain name, token symbol, decimals, owner address, proxy implementation address (if applicable), an array of security flags (e.g. UPGRADEABLE_PROXY, HAS_MINT_FUNCTION, HAS_BLACKLIST, PAUSABLE, ACTIVE_OWNER), and a heuristic risk rating (e.g. 'elevated', 'low').

## 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",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "ERC-20 token contract on Base"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "flags": [
   "UPGRADEABLE_PROXY",
   "HAS_MINT_FUNCTION",
   "HAS_BLACKLIST",
   "PAUSABLE",
   "ACTIVE_OWNER"
  ],
  "owner": "0x3abd…",
  "symbol": "USDC",
  "decimals": 6,
  "heuristicRisk": "elevated",
  "proxyImplementation": "0x2ce6…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-labs-erc-20-token-check-545d41c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
