# Base EVM & Solana Smart Contract Security Scanner

> Base EVM & Solana Smart Contract Security Scanner is a paid API for AI agents from onchain-risk.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-11-21).

Audits a Base EVM contract address or Solana SPL Mint for rug-pull risk signals including proxy patterns, GoPlus honeypot flags, and freeze authority

## Facts

- Endpoint: POST https://onchain-risk.agentdiet.dev/v1/rug-check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Provider: onchain-risk.agentdiet.dev
- Website: https://onchain-risk.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/onchain-risk-agentdiet-dev-base-evm-solana-smart-contract-security-e33d07c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V6XO0-Ko3P5Ps_b5TBPCN

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 onchain-risk-agentdiet-dev-base-evm-solana-smart-contract-security-e33d07c9 -d '<json body>'
```

Example prompt: Can you run a rug-check on the Solana mint address 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU and tell me if it has freeze authority or any honeypot flags?

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call ($0.01) security audit of a specific Base EVM contract or Solana SPL Mint before executing a trade, swap, or interaction. It is ideal for DeFi agents, trading bots, and wallet apps that need real-time GoPlus honeypot checks and proxy/freeze-authority detection without maintaining their own blockchain indexing infrastructure. Prefer it over manual block-explorer inspection or building a custom GoPlus integration.

## Known failure modes

- Invalid or malformed address format returns an error — ensure 0x prefix for EVM or valid Base58 for Solana
- Unrecognized contract not yet indexed may return empty or incomplete risk data
- Payment failure (HTTP 402) if x402 USDC payment is not properly attached
- Network timeout if on-chain RPC node is temporarily unavailable
- Address on unsupported chain returns an error — only Base EVM and Solana are supported

## 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://onchain-risk.agentdiet.dev/v1/rug-check)

## Output

Returns a JSON object containing on-chain security analysis results for the submitted contract or mint address, including honeypot detection flags from GoPlus, proxy pattern identification, freeze authority status, and overall risk indicators that an agent can use to decide whether to proceed with an interaction.

## 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/onchain-risk-agentdiet-dev-base-evm-solana-smart-contract-security-e33d07c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-risk.agentdiet.dev](https://www.zero.xyz/host/onchain-risk.agentdiet.dev/llms.txt)
