lookup_agent
Verify an agent's ERC-8004 registration on Base by ID, returning its owner, wallet, and domain. Optionally compare a pay-to address or resource URL to flag mismatches against the on-chain record.
Instructions
Reads an agent's ERC-8004 record from the registry on the active Base network (read-only, on-chain only — the wallet never fetches the agent's website). Give it agent_id, the agent's number in the Identity Registry. Returns: registered, owner, wallet (the registered agentWallet), token_uri and the uri_domain read from it, declared_name (what the record calls itself), and feedback_clients (how many addresses left feedback). Pass pay_to and/or resource to also get a comparison: whether the address equals the registered wallet and whether the resource's domain equals the domain listed on-chain. IMPORTANT: registration is permissionless — anyone can register any name, domain, or wallet, and anyone can leave feedback. Being registered is NOT proof of safety. Only a mismatch is a strong signal, and only when the agent number came from a source you trust (the service's own docs), not from the payment response itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pay_to | No | Optional: an address to compare against the agent's registered wallet. | |
| agent_id | Yes | The agent's ERC-8004 number (agentId — the Identity Registry NFT token id). | |
| resource | No | Optional: a resource URL whose domain is compared with the domain listed on-chain. |