# EVM Address Code Inspector (Contract vs EOA Checker)

> EVM Address Code Inspector (Contract vs EOA Checker) is a paid API for AI agents from webtools402.176-109-107-191.sslip.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Checks whether an EVM address is a smart contract or an externally owned account (EOA) on Base, Ethereum, Arbitrum, Optimism, Polygon, or BNB, returning is_contract flag, deployed bytecode size, and keccak256 code hash.

## Facts

- Endpoint: GET https://webtools402.176-109-107-191.sslip.io/code
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-address-code-inspector-contract-vs-eoa-checker-a59ba4f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J2vKvNNIKTODOBvkSZ6xE

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 evm-address-code-inspector-contract-vs-eoa-checker-a59ba4f5
```

Example prompt: Can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 is a smart contract or a regular wallet on Ethereum, and tell me the bytecode size and code hash?

## When to prefer this

Use this endpoint when you need a fast, cheap, on-chain verification of whether an address is a deployed smart contract or a plain wallet (EOA) across the six most popular EVM chains. Ideal for pre-flight checks before interacting with an address (e.g., determining if you need ABI calls), for fraud/risk screening pipelines, or for enriching address metadata. Prefer this over a full transaction lookup when you only need code presence, size, and hash rather than transaction history.

## Known failure modes

- Invalid address format (not a valid 0x hex address) — likely returns a 4xx error
- Unsupported network specified — only base, ethereum, arbitrum, optimism, polygon, bnb are valid
- RPC timeout or node unavailability for the requested network — may return 5xx or timeout
- Address not found / zero address edge cases — returns is_contract=false with size 0
- Payment failure (x402 protocol) — returns 402 if USDC payment not settled

## How this service works

Is an address a contract or an EOA on Base, Ethereum, Arbitrum, Optimism, Polygon or BNB (default Base)? Returns is_contract, deployed code size in bytes, and the keccak256 code hash (eth_getCode).

## Output

Returns a JSON object with: is_contract (boolean indicating whether the address has deployed code), deployed code size in bytes, and the keccak256 hash of the deployed bytecode (from eth_getCode). If the address is an EOA, code size will be 0 and the hash will reflect empty code.

## 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",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Address (0x..)"
      },
      "network": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon",
        "bnb"
       ],
       "type": "string",
       "description": "EVM network to read from (default base)"
      }
     }
    }
   },
   "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/evm-address-code-inspector-contract-vs-eoa-checker-a59ba4f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtools402.176-109-107-191.sslip.io](https://www.zero.xyz/host/webtools402.176-109-107-191.sslip.io/llms.txt)
