# Proxy / Upgrade Detector

> Proxy / Upgrade Detector is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Reads EIP-1967 proxy storage slots on a contract to detect upgradeability, current implementation address, and admin/upgrader identity — flagging dangerous EOA-controlled upgrades with no timelock or multisig.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/proxy-check
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/proxy-upgrade-detector-fa514753
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CY64RZuddI7bh0VH3FnjR

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 proxy-upgrade-detector-fa514753
```

Example prompt: Check whether the contract at 0x1234...abcd is upgradeable, who the upgrade admin is, and whether it's just an EOA that could swap the logic without any timelock or multisig.

## When to prefer this

Use this endpoint when you need to assess smart contract upgradeability risk, specifically the EIP-1967 proxy pattern, and want to know whether an EOA (single wallet) controls upgrades without a timelock or multisig. Prefer this over static analysis tools when you need live on-chain slot reads rather than bytecode inspection, since static scans miss runtime proxy configurations. Ideal as a pre-investment or pre-integration security check for DeFi protocols and token contracts.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty proxy data
- Contract is not a proxy — returns non-upgradeable result with no implementation/admin slots
- RPC timeout or chain data unavailability causes failed fetch
- Malformed address string returns a validation error
- Non-EIP-1967 proxy patterns may not be fully detected

## How this service works

Reads the EIP-1967 proxy slots live: is the contract upgradeable, what's the current implementation, and WHO can upgrade it. Flags the dangerous case — an EOA admin that can swap the logic at any block with no timelock/multisig. Upgradeability is a rug vector static scans miss.

## Output

Returns whether the contract is an upgradeable proxy (EIP-1967 compliant), the current implementation contract address, the admin/upgrader address, the type of upgrade authority (EOA vs multisig vs timelock), and risk flags indicating whether the setup represents a dangerous single-point-of-control rug vector.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/proxy-upgrade-detector-fa514753/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
