{"uid":"cap_R4PHfRsOxAe4p6qQJOC4h","slug":"erc-8004-on-chain-agent-registration-verifier-6e208ba5","name":"ERC-8004 On-Chain Agent Registration Verifier","description":"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.","url":"https://ai-policy-kit.moneymaker-ai.workers.dev/api/erc8004-agent?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gqaM9DPuplwiI_Q0EoMh8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Audit agent identity before integration","prompt":"Before I integrate this third-party AI agent into my pipeline, can you check if agent ID 99821 on Base has a valid ERC-8004 registration and that its wallet matches the on-chain record?"},{"title":"Pin verification to a specific block","prompt":"Verify agent ID 512044 on Ethereum at block 19800000 — I need to confirm what its registration looked like at that exact block height."},{"title":"Check agent registration on Polygon","prompt":"Can you look up the on-chain registration for agent 204771 on Polygon and tell me who the owner is, what the token URI points to, and whether all the checks pass?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:39:20.009Z","isFirstParty":false,"canonicalSlug":"erc-8004-on-chain-agent-registration-verifier-6e208ba5"}