# Agent Guard – On-Chain Wallet Heuristic Flags

> Agent Guard – On-Chain Wallet Heuristic Flags is a paid API for AI agents from agent-guard.annushka1190.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-16).

Analyzes an EVM or Solana wallet address on-chain and returns heuristic risk flags, transaction count, contract status, and a risk score.

## Facts

- Endpoint: POST https://agent-guard.annushka1190.workers.dev/v1/wallet/heuristic-flags
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-guard-on-chain-wallet-heuristic-flags-578fa2e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J7xbJCrfEdCjvqyzUk5bD

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 agent-guard-on-chain-wallet-heuristic-flags-578fa2e3 -d '<json body>'
```

Example prompt: Before I send any USDC, can you run heuristic risk checks on wallet 0x4f4C15d9bD7c796A9f9B769b78323EA3E0054104 on Base and tell me if it has any suspicious flags or a high risk score?

## When to prefer this

Choose this endpoint when you need on-chain heuristic analysis of a specific EVM or Solana wallet address — including risk scoring, contract detection, and transaction count — before authorizing a payment or interaction. It is especially valuable in agentic pipelines where wallets from unknown counterparties must be screened automatically. Prefer it over generic blockchain explorers when you need a machine-readable risk score and flag list rather than raw transaction data.

## Known failure modes

- Invalid or malformed wallet address returns an error response
- Unsupported network type causes request failure
- On-chain data unavailable for very new or unfunded wallets may return sparse results
- Payment failure via x402 if USDC balance is insufficient blocks the call
- Rate limiting or worker timeout on high-traffic periods

## How this service works

Safety and trust layer for AI agents: PII redaction, scam/phishing text scan, EVM/Solana address validation, IBAN checks, JSON repair, deep on-chain wallet risk scoring, x402 counterparty endpoint reputation checks. Free discovery: /openapi.json, /.well-known/x402, /v1/capabilities, /mcp (tools/list). REST + MCP. Pay with USDC via x402 — no API keys.

## Output

Returns a JSON object with the queried wallet address, the network it was checked on, a numeric risk score, a boolean indicating whether it is a smart contract, a transaction count, and an array of heuristic risk flags (e.g. drain patterns, airdrop scams, seed phrase exposure indicators). An empty flags array and risk score of 0 indicates a clean wallet.

## Request schema (JSON Schema)

```json
{
 "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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Wallet address"
      },
      "network": {
       "type": "string",
       "description": "base | solana (default base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-guard-on-chain-wallet-heuristic-flags-578fa2e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-guard.annushka1190.workers.dev](https://www.zero.xyz/host/agent-guard.annushka1190.workers.dev/llms.txt)
