# HyperD Contract Security Audit

> HyperD Contract Security Audit is a paid API for AI agents from api.hyperd.ai, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-10).

Runs a pre-trade smart contract security audit combining GoPlus token security, Sourcify verification, DefiLlama recognition, and on-chain heuristics into a single 0-100 risk score with structured findings.

## Facts

- Endpoint: GET https://api.hyperd.ai/api/contract/audit?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-hyperd-ai-8ece4230
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NLP5QzaXsz5FCHpgfcasT

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 api-hyperd-ai-8ece4230
```

Example prompt: Before I swap into this token, run a full security audit on contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on ethereum and give me the 0-100 risk score along with any red flags.

## When to prefer this

Use this endpoint when an AI agent needs a holistic, pre-trade smart contract risk assessment that aggregates multiple trusted security data sources (GoPlus, Sourcify, DefiLlama) into a single score rather than querying each provider separately. Prefer it over individual token-security APIs when you need a unified risk score, source verification status, and protocol recognition in one call for chains including Base, Ethereum, Polygon, Arbitrum, Optimism, Avalanche, and BNB.

## Known failure modes

- Invalid or non-checksummed contract address returns 400 or error response
- Unsupported chain value outside the allowed enum returns validation error
- Contract not yet deployed or unknown on the specified chain may return incomplete findings
- Rate limiting or payment failure (x402) if USDC allowance is insufficient
- Transient upstream provider failure (GoPlus/DefiLlama outage) may degrade partial results

## How this service works

Pre-trade contract security audit. Composes GoPlus token security + Sourcify verification + DefiLlama protocol recognition + on-chain heuristics into a single 0-100 risk score with structured findings.

## Output

Returns a structured security audit report containing a composite 0-100 risk score, GoPlus token security flags (honeypot, mintable, proxy, etc.), Sourcify source-code verification status, DefiLlama protocol recognition (whether the contract belongs to a known DeFi protocol), and on-chain heuristic findings. Higher scores indicate higher risk.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum",
   "contract": "0xdAC17F958D2ee523a2206206994597C13D831ec7"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "contract"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "polygon",
        "arbitrum",
        "optimism",
        "avalanche",
        "bnb"
       ],
       "type": "string"
      },
      "contract": {
       "type": "string",
       "description": "Contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-hyperd-ai-8ece4230/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hyperd.ai](https://www.zero.xyz/host/api.hyperd.ai/llms.txt)
