# ERC-8004 On-Chain Agent Registration Verifier

> ERC-8004 On-Chain Agent Registration Verifier is a paid API for AI agents from ai-policy-kit.moneymaker-ai.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Verifies an on-chain ERC-8004 agent registration by checking that the agent's wallet and metadata match the on-chain record for a given agentId and chain.

## Facts

- Endpoint: GET https://ai-policy-kit.moneymaker-ai.workers.dev/api/erc8004-agent?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-8004-on-chain-agent-registration-verifier-6e208ba5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R4PHfRsOxAe4p6qQJOC4h

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 erc-8004-on-chain-agent-registration-verifier-6e208ba5
```

Example prompt: Can you verify the on-chain ERC-8004 registration for agent ID 364913 on the BSC chain and confirm that the agent wallet matches what's recorded in the registration file?

## When to prefer this

Use this endpoint when you need to cryptographically verify that an AI agent's on-chain ERC-8004 registration is legitimate and internally consistent — specifically when the agentWallet address, token URI, and registration file SHA256 must all agree with what is stored on-chain. Prefer this over manual RPC calls when you want a structured, multi-check summary across supported EVM chains without writing custom blockchain queries.

## Known failure modes

- Invalid or non-existent agentId returns an error or empty result
- Unsupported chain value returns a validation error
- Block number too far in the past may exceed RPC archive depth
- Network timeouts from blockchain RPC nodes
- Registration file URL unreachable causes fetched:false in response
- Mismatch between agentWallet and on-chain value causes check pass:false

## How this service works

Generate an AI_POLICY.md and a pull request template with an AI-disclosure section for your open-source repo. Free, runs in your browser.

## Output

Returns a JSON object containing the chain, block number, agentId, owner address, agentWallet address, tokenURI, a fetched registration file with its SHA256 hash, and an array of named checks each with a pass/fail result indicating whether on-chain data matches the registration file.

## 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": [
      "chain",
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "numeric agentId"
      },
      "block": {
       "type": "string",
       "description": "optional block number to pin (default latest)"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "bsc",
        "arbitrum",
        "optimism",
        "polygon",
        "gnosis",
        "celo"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 128343930,
  "chain": "bsc",
  "owner": "0x7C34…359f",
  "checks": [
   {
    "pass": true,
    "check": "registration file agentWallet == on-chain getAgentWallet"
   }
  ],
  "agentId": "364913",
  "tokenURI": "https://…/agent-registration.json",
  "agentWallet": "0x7C34…359f",
  "registration_file": {
   "sha256": "9e3153ed…",
   "fetched": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-8004-on-chain-agent-registration-verifier-6e208ba5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-policy-kit.moneymaker-ai.workers.dev](https://www.zero.xyz/host/ai-policy-kit.moneymaker-ai.workers.dev/llms.txt)
