# Arbitrum Contract Detection

> Arbitrum Contract Detection is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Checks whether a given Ethereum address is a smart contract on Arbitrum One, returning contract metadata including code size, proxy type, and implementation address.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/arb/is-contract?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arbitrum-contract-detection-556e92d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Upt_xghLWVwGSZkvowyz

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 arbitrum-contract-detection-556e92d0
```

Example prompt: Is 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 a smart contract on Arbitrum One, and if so, is it a proxy with an implementation address?

## When to prefer this

Use this endpoint when you specifically need to classify an address on Arbitrum One as a contract vs. EOA, or to detect proxy patterns (minimal proxy / EIP-1167) and resolve the underlying implementation. Choose this over generic Ethereum tools when the target chain is Arbitrum, and prefer it over block explorers when you need a machine-readable, pay-per-call result with no API key.

## Known failure modes

- Invalid or malformed address format returns an error
- Address with no on-chain activity may return isContract: false even if recently deployed
- Network timeout or RPC unavailability for Arbitrum may cause failure
- Non-0x-prefixed address strings may be rejected by schema validation

## How this service works

Check whether a 0x address on Arbitrum One is a smart contract or a plain wallet: bytecode size, and whether it is an EIP-1167 minimal proxy and which implementation it points to. 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 chain name ('Arbitrum One'), chainId (42161), the queried address, a boolean isContract indicating whether the address has deployed bytecode, codeBytes with the size of the bytecode, a minimalProxy boolean indicating EIP-1167 proxy pattern, and an implementation field (address string or null) pointing to the underlying logic contract if it is a proxy.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
       ],
       "description": "0x address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "address": {
       "type": "string"
      },
      "chainId": {
       "type": "number"
      },
      "codeBytes": {
       "type": "number"
      },
      "isContract": {
       "type": "boolean"
      },
      "minimalProxy": {
       "type": "boolean"
      },
      "implementation": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "Arbitrum One",
  "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
  "chainId": 42161,
  "codeBytes": 1855,
  "isContract": true,
  "minimalProxy": false,
  "implementation": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arbitrum-contract-detection-556e92d0/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)
