# Contract Address Inspector

> Contract Address Inspector is a paid API for AI agents from api.api-agent-ia.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-23).

Checks whether a given blockchain address is a smart contract (rather than an externally-owned account)

## Facts

- Endpoint: GET https://api.api-agent-ia.ch/contrat?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/contract-address-inspector-e405b0bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-guUqx6fbKMqZxJoWbPbt

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 contract-address-inspector-e405b0bb
```

Example prompt: Can you check if the address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 is a smart contract or just a regular wallet?

## When to prefer this

Use this endpoint when you need a quick, cheap binary answer on whether a blockchain address is a smart contract or a regular wallet. Ideal for pre-flight checks before interacting with an address, screening untrusted addresses, or validating contract deployments without running a full node.

## Known failure modes

- Missing or malformed 'adresse' query parameter returns an error
- Invalid non-hex address string causes a lookup failure
- Network or RPC issues may cause temporary unavailability
- Address not found on the target chain returns an error or false result

## How this service works

Is this address a wallet or a smart contract? Returns whether it has code on Base, its bytecode size, ETH balance and nonce ($0.003 per call).

## Output

Returns a JSON object containing the queried address and a boolean field 'est_contrat' (true if the address is a smart contract, false if it is an externally-owned account).

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nonce": 1,
  "reseau": "base",
  "adresse": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "solde_eth": "0.009800646158085843",
  "est_contrat": true,
  "taille_bytecode": 1852
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/contract-address-inspector-e405b0bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.api-agent-ia.ch](https://www.zero.xyz/host/api.api-agent-ia.ch/llms.txt)
