# WalletGuard AI Smart Contract Security Audit

> WalletGuard AI Smart Contract Security Audit is a paid API for AI agents from walletguard.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Performs an AI-powered security audit on a smart contract address, returning a risk score, risk factors, and audit availability status.

## Facts

- Endpoint: GET https://walletguard.ai/api/x402/shield?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/walletguard-ai-smart-contract-security-audit-a8c4c0c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WmAqELHE4dzCou25f1wNX

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 walletguard-ai-smart-contract-security-audit-a8c4c0c1
```

Example prompt: Can you run a WalletGuard security audit on the smart contract at 0x1234567890abcdef1234567890abcdef12345678 on Base (chain ID 8453) and tell me the risk score and any risk factors?

## When to prefer this

Use this endpoint when you need a quick, automated AI-driven security risk assessment of a specific smart contract address before interacting with it, approving token spending, or investing. Ideal for DeFi due diligence, wallet safety checks, or screening unknown contracts on Base or other EVM chains. Prefer this over manual audits when speed and cost (only $0.01 per call) matter more than exhaustive human review.

## Known failure modes

- Invalid or malformed contract address returns an error
- Contract not deployed on the specified chain ID returns not-found error
- Unsupported chain ID may return an error or default to Base (8453)
- Rate limiting or payment failure may result in 402 or 429 response
- Unverified or undeployed contracts may return limited or no risk data

## How this service works

Paste any smart contract address and get a comprehensive AI-powered security audit. Free wallet health checks, developer APIs, and verification badges.

## Output

Returns a numeric risk score (0–100 scale indicating security risk level), an array of human-readable risk factor strings describing identified vulnerabilities or concerns, and a boolean indicating whether a full professional audit is available for that contract.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "chain": {
   "type": "number",
   "description": "Chain ID (default: 8453)"
  },
  "address": {
   "type": "string",
   "description": "Contract address to check"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "factors": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "riskScore": {
   "type": "number"
  },
  "auditAvailable": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/walletguard-ai-smart-contract-security-audit-a8c4c0c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from walletguard.ai](https://www.zero.xyz/host/walletguard.ai/llms.txt)
