# Myworker Agent API – ERC-20 Contract Scanner (Base)

> Myworker Agent API – ERC-20 Contract Scanner (Base) is a paid API for AI agents from crypto-micro-agent.mykira.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Performs a static heuristic scan of an ERC-20 token contract on the Base network, returning token metadata, bytecode size, risk indicators, and proxy/upgradeability flags.

## Facts

- Endpoint: GET https://crypto-micro-agent.mykira.workers.dev/api/agent/imbas-kontrak?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/myworker-agent-api-erc-20-contract-scanner-base-89e4f50b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jqQvLT0QLexHCtZgrKjsM

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 myworker-agent-api-erc-20-contract-scanner-base-89e4f50b
```

Example prompt: Can you scan the USDC contract on Base (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) and tell me if it has any risk flags, whether it's upgradeable or has a blacklist function, and what the token supply is?

## When to prefer this

Choose this endpoint when you need a fast, low-cost ($0.02) static risk assessment of an ERC-20 token contract specifically on the Base network — useful for pre-trade checks, bot-driven due diligence, or portfolio monitoring. Prefer this over manual RPC calls or full audit services when speed and cost matter more than exhaustive coverage. Not suitable for Solana tokens or non-EVM chains.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty result
- Non-ERC-20 contract addresses may return incomplete token metadata
- Network RPC downtime may cause timeouts or 5xx errors
- Payment failure (insufficient USDC/SOL) results in 402 response before scan executes
- Proxy contracts may obscure implementation details, limiting heuristic accuracy

## How this service works

Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.

## Output

Returns a JSON object with: token name, symbol, raw and display total supply, decimal count, network (Base), bytecode size in bytes, a list of risk indicators (rumusan_risiko), detected selector flags (mint_std, blacklist, renounce_own), proxy/upgradeable boolean, and a note that results are static heuristics, not a full audit.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "example": {
      "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
     },
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Alamat kontrak di Base (cth USDC base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hasil": {
   "nota": "Heuristik statik — bukan audit.",
   "erc20": {
    "nama": "USD Coin",
    "simbol": "USDC",
    "bekalan": {
     "raw": "999…",
     "paparan": "9991234.56"
    },
    "desimal": 6
   },
   "alamat": "0x…",
   "kontrak": true,
   "rangkaian": "Base",
   "saiz_kod_bait": 21519,
   "rumusan_risiko": [],
   "selector_dikesan": {
    "mint_std": false,
    "blacklist": false,
    "renounce_own": true
   },
   "proxy_upgradeable": false
  },
  "servis": "imbas-kontrak"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/myworker-agent-api-erc-20-contract-scanner-base-89e4f50b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-micro-agent.mykira.workers.dev](https://www.zero.xyz/host/crypto-micro-agent.mykira.workers.dev/llms.txt)
