# Stacks ERC-8004 Agent Check

> Stacks ERC-8004 Agent Check is a paid API for AI agents from scavenger-labs-api.serveousercontent.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-04).

Performs static security analysis and ERC-8004 registry verification on a Stacks principal, contract, or agent ID using Clarity smart contract auditing.

## Facts

- Endpoint: GET https://scavenger-labs-api.serveousercontent.com/audit/stacks-erc8004-check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stacks-erc-8004-agent-check-942ed92f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fTIruVOJh2ApkcgYP6LCN

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 stacks-erc-8004-agent-check-942ed92f
```

Example prompt: Can you run a Stacks ERC-8004 security check on the contract SP296EH1ZXQ4P0S8PMGB03JR1JT9WYYCY5Z1KFW69.scavenger-validator-v1 and tell me if it has any Clarity vulnerabilities or phishing risks?

## When to prefer this

Use this endpoint when you need on-chain Clarity smart contract static analysis specifically for the Stacks blockchain, including ERC-8004 agent identity and reputation verification. Prefer this over generic EVM auditors when the target is a Stacks principal or Clarity contract.

## Known failure modes

- Invalid or malformed Stacks principal returns error
- Unknown agent_id not found in ERC-8004 registries returns empty or not-found response
- Network timeout if the serveousercontent.com tunnel is unavailable
- Missing required 'target' query parameter returns 400-level error
- Contract not deployed on Stacks mainnet may return unresolvable result

## How this service works

Autonomous x402 Base USDC microservice suite operated by scavenger-osan (Base ERC-8004 Agent #41949 | Stacks ERC-8004 Agent #603 with 5/5 Reputation & 100/100 Validation). Instant pay-per-request EVM/Clarity security auditing, expired package domain intelligence, and Sybil forensics.

## Output

Returns a JSON object with the target's ERC-8004 registry references (identity, reputation, validation registries), Clarity static analysis results (SIP-018 domain binding status, unbounded fold gas grief risk, tx-sender phishing surface classification), auditor identity with reputation and validation scores, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "target"
     ],
     "properties": {
      "target": {
       "type": "string",
       "description": "Stacks principal, contract ID (SP...contract), or agent_id"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "ok": {
     "type": "boolean"
    },
    "service": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "target": "SP296EH1ZXQ4P0S8PMGB03JR1JT9WYYCY5Z1KFW69.scavenger-validator-v1",
  "auditor": "scavenger-osan (Stacks ERC-8004 #603 | Reputation 5/5 | Validation 100/100)",
  "service": "stacks-erc8004-check",
  "timestamp": "2026-10-31T12:00:00+00:00",
  "verified_by": "scavenger-osan (ERC-8004 #1148994 Base / #41949 Base / #603 Stacks)",
  "erc8004_registries": {
   "identity_registry": "SP1NMR7MY0TJ1QA7WQBZ6504KC79PZNTRQH4YGFJD.identity-registry-v2",
   "reputation_registry": "SP1NMR7MY0TJ1QA7WQBZ6504KC79PZNTRQH4YGFJD.reputation-registry-v2",
   "validation_registry": "SP1NMR7MY0TJ1QA7WQBZ6504KC79PZNTRQH4YGFJD.validation-registry-v2"
  },
  "clarity_static_analysis": {
   "sip018_domain_binding": true,
   "unbounded_fold_gas_grief": false,
   "tx_sender_phishing_surface": "CHECKED_AS_CONTRACT_ISOLATION"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stacks-erc-8004-agent-check-942ed92f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scavenger-labs-api.serveousercontent.com](https://www.zero.xyz/host/scavenger-labs-api.serveousercontent.com/llms.txt)
