# APEX Smart Contract Risk Check

> APEX Smart Contract Risk Check is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-01).

Analyzes a smart contract's bytecode on Base or Arc chain to detect dangerous owner privileges such as minting, pausing, blacklisting, fee changes, and upgradability

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/contract-flags?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apex-smart-contract-risk-check-a0c718b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HVeA0ul52vsDZEsVYbg9E

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 apex-smart-contract-risk-check-a0c718b8
```

Example prompt: Can you check this Base chain token contract 0x1234567890abcdef1234567890abcdef12345678 for dangerous owner powers — like whether they can mint more tokens, blacklist holders, pause trading, change fees, or upgrade the code?

## When to prefer this

Choose this endpoint when you need rapid, on-chain bytecode-level risk assessment for a specific ERC20 or DeFi contract on Base or Arc, particularly to detect dangerous owner privileges before investing or integrating. It is more targeted than a full audit and faster than manual bytecode review, especially when the contract may be a proxy.

## Known failure modes

- Invalid or non-checksummed contract address returns an error
- Contract address is an EOA (externally owned account), not a contract
- Unsupported chain value other than 'base' or 'arc'
- Contract bytecode not yet indexed or very recently deployed
- Proxy target contract not resolvable or self-destructed
- Payment failure or insufficient USDC balance for x402 fee

## How this service works

Smart contract risk check (Base, Arc): can the owner mint, pause, blacklist, change fees or upgrade the code? What can the people behind this contract do to holders? Pass ?chain=base|arc&address=0x... and we read its bytecode on chain (and the code behind a proxy): mint, pause, blacklist, change fees or taxes, cap wallets, switch trading off, upgrade the code. Plus proxy type, who owns it now (renounced or a live wallet or contract) and basic token data.

## Output

Returns a set of boolean risk flags (mint, pause, blacklist, fee/tax change, wallet cap, trading switch, upgrade), the proxy type if applicable, the current owner address with indication of whether it is renounced or a live wallet/contract, and basic token metadata.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "arc"
       ],
       "type": "string",
       "description": "Which chain: base or arc."
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "The contract address (0x...)."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apex-smart-contract-risk-check-a0c718b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
