# Xerxes eth_getCode — Ethereum Contract Bytecode Lookup

> Xerxes eth_getCode — Ethereum Contract Bytecode Lookup is a paid API for AI agents from ari001.tailb4ac3a.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns the deployed bytecode of a smart contract at a given Ethereum address using eth_getCode

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_contract_abi_service/eth_getcode?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xerxes-eth-getcode-ethereum-contract-bytecode-lookup-27f4ad74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F93HxN2qnn2zJqj94kYgk

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 xerxes-eth-getcode-ethereum-contract-bytecode-lookup-27f4ad74
```

Example prompt: Can you fetch the bytecode deployed at Ethereum address 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 so I can confirm the contract is actually deployed there?

## When to prefer this

Use this endpoint when you need to verify whether an Ethereum address has deployed contract code, retrieve raw bytecode for analysis or decompilation, or confirm a deployment succeeded. It is the canonical eth_getCode RPC call, ideal for lightweight contract-existence checks without needing a full ABI or indexed data source. Prefer this over ABI-fetching services when you only need raw bytecode, not decoded interfaces.

## Known failure modes

- Invalid address format (not 0x + 40 hex) returns a validation error
- Address exists but has no code (EOA) returns '0x' as bytecode — not an error, but may be mistaken for one
- Network or RPC connectivity issues may cause service unavailability
- Malformed request missing the required address query parameter returns an error response

## How this service works

Returns the bytecode of a contract at a given address via eth_getCode. Useful for verifying contract deployment, checking if an address is a contract, and analyzing contract code. Query: address (0x + 40 hex).

## Output

Returns a JSON object with an 'ok' boolean, a 'result' field containing the 0x-prefixed hex bytecode string (empty '0x' if the address is an EOA or undeployed contract), the chain name, the method name ('eth_getCode'), and a 'service' identifier. On failure, 'ok' is false and an 'error' field describes the problem.

## 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": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "0x + 40 hex"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "service"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "hex": {
       "type": [
        "string",
        "null"
       ]
      },
      "chain": {
       "type": "string"
      },
      "error": {
       "type": "string",
       "description": "present when ok is false"
      },
      "method": {
       "type": "string"
      },
      "result": {
       "type": "string",
       "description": "the bytecode, 0x-hex"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xerxes-eth-getcode-ethereum-contract-bytecode-lookup-27f4ad74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ari001.tailb4ac3a.ts.net](https://www.zero.xyz/host/ari001.tailb4ac3a.ts.net/llms.txt)
