# Ethereum Contract Detection via ETH Is-Contract Check

> Ethereum Contract Detection via ETH Is-Contract Check is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Checks whether a given Ethereum address is a smart contract or an externally owned account (EOA), and returns code size and proxy details

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/eth/is-contract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-contract-detection-via-eth-is-contract-check-34cee04d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_72efbbWvmJdMzqXwknGD0

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 ethereum-contract-detection-via-eth-is-contract-check-34cee04d
```

Example prompt: Can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 is a smart contract or just a regular wallet on Ethereum, and tell me if it's a proxy?

## When to prefer this

Use this endpoint when you need a cheap ($0.001), no-account-required, pay-per-call check to determine whether an Ethereum mainnet address has deployed bytecode — especially useful before sending assets, during security audits, or when building agents that need to classify addresses programmatically. Prefer this over full node RPC calls when you lack direct chain access or want a simple HTTP/MCP-compatible tool with transparent per-call pricing.

## Known failure modes

- Invalid or malformed 0x address returns an error response
- Address not found or network timeout results in failure (no charge)
- Non-Ethereum chain addresses may not be supported by this endpoint path
- Rate limiting or infrastructure issues on the Cloudflare Worker side

## How this service works

Check whether a 0x address on Ethereum is a smart contract or a plain wallet: bytecode size, whether it is an EIP-1167 minimal proxy and which implementation it points to, and whether it is a wallet that delegates to contract code (EIP-7702; delegatedTo names the code, isContract stays false). Use before sending funds or approving a spender; for a fuller risk verdict use check_counterparty. A malformed address is rejected with 400, uncharged.

## Output

Returns a JSON object with the Ethereum chain name, chainId (1 for mainnet), the queried address, the number of bytecode bytes deployed at that address, a boolean isContract flag, a boolean minimalProxy flag indicating EIP-1167 proxy patterns, and an implementation field pointing to the proxied contract address if applicable (null otherwise).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "address": {
   "type": "string",
   "description": "0x address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "address": {
   "type": "string"
  },
  "chainId": {
   "type": "number"
  },
  "codeBytes": {
   "type": "number"
  },
  "isContract": {
   "type": "boolean"
  },
  "delegatedTo": {},
  "minimalProxy": {
   "type": "boolean"
  },
  "implementation": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-contract-detection-via-eth-is-contract-check-34cee04d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
