# Axiom Works Chain Code Checker

> Axiom Works Chain Code Checker is a paid API for AI agents from api.axiomworks.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-12).

Determines whether an Ethereum address is a smart contract or an EOA (externally owned account) by fetching its bytecode via eth_getCode, and detects EIP-7702 delegations.

## Facts

- Endpoint: GET https://api.axiomworks.co.uk/chain/code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/axiom-works-chain-code-checker-d1390301
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wt-wyZ-Vz1jQqKSVf6Miv

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 axiom-works-chain-code-checker-d1390301
```

Example prompt: Is 0x8335...2913 a smart contract or a regular wallet on Base? Also check if it has any EIP-7702 delegation set.

## When to prefer this

Use this endpoint when you need a fast, cheap ($0.001) check on whether an address is a contract or EOA, or to detect EIP-7702 delegations, before deciding whether to call the more expensive /contract endpoint ($0.003) for proxy/owner/token details. Ideal as a first-pass filter in automated pipelines that process many addresses.

## Known failure modes

- Invalid address format (not 0x + 40 hex chars) → validation error
- Unsupported chain name → enum validation error
- Address not found on specified chain → may return is_contract: false with code_size: 0
- RPC timeout or chain node unavailability → 5xx error
- Payment failure (x402) → 402 Payment Required

## How this service works

Is this address a contract or a wallet (EOA)? eth_getCode → is_contract, bytecode size and prefix, EIP-7702 delegation detection. Example: {address:"0x8335…2913", chain:"base"}. Use /contract ($0.003) for proxy/owner/token detail. $0.001.

## Output

A JSON object containing: the address queried, the chain name and chain ID, a boolean is_contract flag, a boolean is_eoa flag, the bytecode size in bytes, a hex prefix of the bytecode, the source method (eth_getCode), and an eip7702_delegate field (string address if delegated, null otherwise).

## 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": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      },
      "wallet": {
       "type": "string",
       "description": "Alias for address (owner wallet)"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "code_size": {
       "type": "number"
      },
      "is_contract": {
       "type": "boolean"
      },
      "eip7702_delegate": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "is_eoa": false,
  "source": "eth_getCode",
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "chain_id": 8453,
  "code_size": 1852,
  "code_prefix": "0x60806040526004361061005a5760003560e01c80635c60da1b11610043578063",
  "is_contract": true,
  "eip7702_delegate": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/axiom-works-chain-code-checker-d1390301/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.axiomworks.co.uk](https://www.zero.xyz/host/api.axiomworks.co.uk/llms.txt)
