# Ethereum Address Bytecode Inspector

> Ethereum Address Bytecode Inspector is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-23).

Returns bytecode size, contract status (is_contract), and keccak256 hash of the first bytes for a given Ethereum address, with optional truncated bytecode preview.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/eth-code?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-address-bytecode-inspector-5617c681
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yNSv2yDIivsdmGlZ0EHOV

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-address-bytecode-inspector-5617c681 -d '<json body>'
```

Example prompt: Can you check if 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 is a smart contract on Ethereum and give me the keccak256 hash of its bytecode along with how many bytes of code it has?

## When to prefer this

Use this endpoint when you need to determine whether an Ethereum mainnet address is a smart contract or an EOA (externally owned account), retrieve its bytecode size, or get a keccak256 hash of its deployed code — all in a single lightweight read-only call. Prefer this over full blockchain node queries when you don't need the full bytecode and just want a quick fingerprint or contract check. The sandbox endpoint (/v1/sandbox/eth-code) is available for free testing before committing to the $0.002 USDC paid call.

## Known failure modes

- Invalid Ethereum address format returns an error response
- Address not found or network timeout results in an error
- Malformed JSON body causes a 400 bad request
- Unpaid or failed x402 payment results in a 402 Payment Required response before data is returned
- Rate limiting or overload may cause transient 5xx errors

## How this service works

Call when an agent needs bytecode size, is_contract, and a keccak256 hash of the first bytes for one Ethereum address. include_bytecode returns a truncated preview. An empty account is is_contract false. Read-only. No spend. Send JSON {"address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/eth-code first.

## Output

Returns a JSON object containing: the bytecode size in bytes (integer), a boolean is_contract indicating whether the address has deployed code, and a keccak256 hash of the first bytes of bytecode. If include_bytecode is true, a truncated preview of up to 128 bytes of bytecode is also returned. For empty accounts, is_contract is false and size is 0.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "examples": [
    "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
   ],
   "description": "Address on Ethereum mainnet. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Returns size, is_contract, and a keccak of the first bytes."
  },
  "include_bytecode": {
   "type": "boolean",
   "description": "When true, include at most 128 bytes of bytecode. Example: false. Default is false. The hash is still returned."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-address-bytecode-inspector-5617c681/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
