# DeFi Safety Oracle

> DeFi Safety Oracle is a paid API for AI agents from oracle.cyberwarex.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Analyzes an ERC-20 token contract on Base or BSC for honeypot/rug risks using deterministic DEX simulation and cross-checks, returning a safety grade A–F and tradeability verdict.

## Facts

- Endpoint: GET https://oracle.cyberwarex.com/contract?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-safety-oracle-d5364dcf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n2hJOZgFesLpOsEt64DdY

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 defi-safety-oracle-d5364dcf
```

Example prompt: Check if the token at 0x4200000000000000000000000000000000000042 on Base is safe to trade — I want to know if it's a honeypot, what shady contract powers it has, and what safety grade it gets.

## When to prefer this

Choose this endpoint when you need deterministic, simulation-based honeypot detection on Base or BSC — not just static code analysis. It is preferable over pure GoPlus or honeypot.is lookups alone because it combines on-chain eth_call state-override simulation against real DEX pools (Aerodrome, Uniswap V2/V3) with multi-source cross-checks, giving a higher-confidence verdict. Ideal for pre-trade safety gates in trading bots, DeFi dashboards, or user-facing token screeners where a false negative (missing a honeypot) is costly.

## Known failure modes

- Invalid or non-existent contract address returns an error or inconclusive result
- Unsupported chain value (anything other than 'base' or 'bsc') causes a validation error
- Very new contracts with no liquidity pool may not be simulatable
- Payment failure via x402 (insufficient USDC balance or misconfigured payment header) blocks the call
- RPC or DEX pool outages on-chain may cause simulation timeouts

## How this service works

Contract-level risk scan for any EVM token: is the source verified, is it an upgradeable proxy and who is its admin, who owns it and has ownership been renounced, and which dangerous powers the bytecode exposes (mint, pause, blacklist, fee-setting). Returns the raw on-chain evidence, not just a score, so an agent can justify the decision it makes.

## Output

Returns a JSON object with: a letter grade (A–F) reflecting overall safety, a tradeable boolean indicating whether buys and sells can execute normally, an array of detected contract powers (e.g. 'mint', 'blacklist', 'pausable'), and a human-readable summary of the findings.

## 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": {
      "chain": {
       "enum": [
        "base",
        "bsc",
        "ethereum",
        "polygon",
        "arbitrum",
        "robinhood"
       ],
       "type": "string",
       "default": "base",
       "description": "EVM chain to assess the token on."
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "Contract address to analyse."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "proxy": {
       "type": "object",
       "description": "Upgradeable-proxy detection: standard, implementation, admin."
      },
      "token": {
       "type": "object"
      },
      "powers": {
       "type": "object",
       "description": "can_mint, can_pause, can_blacklist, can_set_fees."
      },
      "address": {
       "type": "string"
      },
      "verified": {
       "type": "boolean"
      },
      "ownership": {
       "type": "object"
      },
      "as_of_block": {
       "type": "integer"
      },
      "is_contract": {
       "type": "boolean"
      },
      "powers_caveat": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "proxy": {
   "admin": "0x2C2f5F0d2F1E1a1E9e3aD9d6C0aB2C0d6d5eF1a2",
   "is_proxy": true,
   "standard": "EIP-1967",
   "implementation": "0x2Ce6311ddAE708829bc0784C967b7d77D19FD779"
  },
  "token": {
   "name": "USD Coin",
   "symbol": "USDC",
   "decimals": 6
  },
  "powers": {
   "can_mint": true,
   "can_pause": true,
   "can_set_fees": false,
   "can_blacklist": true
  },
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "verified": true,
  "ownership": {
   "owner": "0x2C2f5F0d2F1E1a1E9e3aD9d6C0aB2C0d6d5eF1a2",
   "renounced": false,
   "has_owner_fn": true,
   "owner_is_contract": false
  },
  "as_of_block": 24118907,
  "is_contract": true,
  "powers_caveat": "bytecode-selector scan"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-safety-oracle-d5364dcf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracle.cyberwarex.com](https://www.zero.xyz/host/oracle.cyberwarex.com/llms.txt)
