# Swift Bot Labs Toolbox – EVM Contract Inspector

> Swift Bot Labs Toolbox – EVM Contract Inspector is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Looks up on-chain metadata for an EVM smart contract address, including whether it is a proxy, its implementation address, and its bytecode size.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/contract?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-evm-contract-inspector-5813a651
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NBkyipHdwQoJKIMmjYTA2

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 swift-bot-labs-toolbox-evm-contract-inspector-5813a651
```

Example prompt: Can you check whether the contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base is a proxy, and if so, what implementation address it points to?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call lookup of EVM contract metadata — especially proxy detection and implementation resolution — without setting up an RPC node or API key. Ideal for agents doing one-off contract inspections across multiple chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, Gnosis). Prefer alternatives if you need full ABI decoding, event logs, or historical state.

## Known failure modes

- Address is an EOA (externally owned account) with no contract code — returns empty or non-contract result
- Invalid or unsupported chain identifier — request rejected
- Malformed Ethereum address — validation error
- Network timeout reaching the target chain RPC — transient failure
- Contract exists but proxy slot is non-standard or unreadable — proxy fields may be null

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

A JSON object indicating whether the call succeeded, the tool name, and a result object containing the contract type (e.g. 'contract'), the chain name, proxy metadata (standard name and implementation address if applicable), the queried address, and the on-chain code size in bytes.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "One of ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, base-sepolia, sepolia (or a chain id)"
      },
      "address": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "evm-contract",
  "result": {
   "type": "contract",
   "chain": "base",
   "proxy": {
    "standard": "ZeppelinOS (legacy unstructured storage)",
    "implementation": "0x2Ce6311ddAE708829bc0784C967b7d77D19FD779"
   },
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "codeSize": 1852
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-evm-contract-inspector-5813a651/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
