# AgentDiet Contract Scanner

> AgentDiet Contract Scanner is a paid API for AI agents from agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-21).

Audits Base EVM smart contracts and Solana SPL Mint addresses for security risks including proxy patterns, honeypot flags, and freeze authority.

## Facts

- Endpoint: GET https://agentdiet.dev/v1/contract-scanner?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-contract-scanner-f8bba02e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_64PoSvcB52LV8RKl7v9Vb

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 agentdiet-contract-scanner-f8bba02e
```

Example prompt: Can you scan the Base EVM contract at 0x6B175474E89094C44Da98b954EedeAC495271d0F for honeypot flags, proxy upgrade patterns, and any other security risks before I interact with it?

## When to prefer this

Choose this endpoint when you need a quick automated security scan of a specific smart contract address on Base EVM or Solana before executing a transaction, investment, or approval. It is purpose-built for DeFi risk screening and combines proxy pattern detection with GoPlus honeypot analysis in a single call, making it superior to manual block explorer review or general-purpose LLM knowledge for real-time onchain risk assessment.

## Known failure modes

- Invalid or malformed contract address returns an error
- Unsupported blockchain network (non-Base EVM or non-Solana) returns unsupported chain error
- Contract not yet deployed or not found on-chain returns not found error
- GoPlus API unavailability may cause partial results or timeout
- Rate limiting or payment failure returns 402 Payment Required

## How this service works

Audits any Base EVM 0x contract or Solana SPL Mint for proxy patterns, GoPlus honeypot flags, and freeze authority. (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/v1/contract-scanner)

## Output

Returns a structured security report for the queried contract address, including proxy pattern detection results, GoPlus honeypot risk flags, freeze authority status (for Solana SPL mints), and an overall onchain risk assessment indicating whether the contract exhibits known malicious or high-risk characteristics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "address": {
   "type": "string",
   "minLength": 1,
   "description": "0x EVM contract/wallet address on Base or Solana Base58 SPL Mint address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-contract-scanner-f8bba02e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdiet.dev](https://www.zero.xyz/host/agentdiet.dev/llms.txt)
