# Contract Code Identity Verifier

> Contract Code Identity Verifier is a paid API for AI agents from api.darangilau.com, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Verifies a deployed smart contract's code identity by computing its keccak256 code hash via eth_getProof on two independent nodes and resolving EIP-1167/1967/1822 proxy patterns.

## Facts

- Endpoint: GET https://api.darangilau.com/contract-code-hash
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/contract-code-identity-verifier-4b663dd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fXriOJzqJfRGKAmJ7WY49

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-code-identity-verifier-4b663dd0
```

Example prompt: Can you verify that the contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum hasn't changed since our audit — its expected code hash was 0xb9a2de3d7e5d696e78b3e6ea4d2aab9bca9a4b5f1c3d2e4f5a6b7c8d9e0f1a2b3?

## When to prefer this

Choose this endpoint when you need cryptographic assurance that a deployed contract's bytecode matches a known-good reference (e.g. from an audit report), when you need dual-node confirmation to guard against a compromised RPC, or when you need to resolve proxy patterns (EIP-1167/1967/1822) to find the actual implementation contract. Prefer this over a simple eth_getCode call when security and tamper-evidence are required, or when dealing with upgradeable proxy contracts where the logic address may have changed.

## Known failure modes

- Invalid or non-checksummed contract address returns a 400 error
- Address is an EOA (not a contract) — returns empty code hash or error
- Expected hash provided but does not match — returns mismatch result
- Two nodes return conflicting code hashes — verification fails with inconsistency error
- Unsupported chain specified — returns 400 validation error
- Network timeout or node unavailability — returns 503 or partial result

## How this service works

Check a deployed contract's code identity - keccak256 code hash read from the node via eth_getProof, confirmed on a second independent node, plus EIP-1167/1967/1822 proxy resolution.

## Output

Returns the keccak256 code hash of the deployed contract bytecode as read via eth_getProof from two independent nodes, a confirmation that both nodes agree, whether the contract matches an optional expected hash, and proxy resolution details (implementation address and proxy standard such as EIP-1167, EIP-1967, or EIP-1822) if applicable.

## 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": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "contract address to check"
      },
      "expected": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{64}$",
       "description": "optional: the keccak256 code hash you expect, e.g. from your audit report or a prior verification"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/contract-code-identity-verifier-4b663dd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.darangilau.com](https://www.zero.xyz/host/api.darangilau.com/llms.txt)
