# ChainRay Contract Scan

> ChainRay Contract Scan is a paid API for AI agents from chainray.online, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Scans a smart contract address on a specified blockchain network for security risks, vulnerabilities, and intelligence data

## Facts

- Endpoint: GET https://chainray.online/contract-scan/:var1
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-contract-scan-4eece146
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5g-xjTVCIvHPUXKW2Jf0c

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 chainray-contract-scan-4eece146
```

Example prompt: Can you run a contract scan on 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum and tell me if it's safe to interact with?

## When to prefer this

Use this endpoint when you need to assess the security posture or risk level of a specific smart contract before interacting with it, investing in a protocol, or approving a transaction. Prefer this over token-risk endpoints when the primary concern is contract-level vulnerability or code analysis rather than token market/liquidity risk.

## Known failure modes

- Invalid or malformed contract address returns error
- Unsupported blockchain network returns error
- Contract address not found on specified chain returns empty or 404
- Payment failure (402) if x402 payment not provided
- Rate limiting or timeout if chain RPC is slow

## How this service works

ChainRay /contract-scan

## Output

A security and intelligence report for the specified smart contract, including vulnerability findings, risk indicators, contract metadata, and any flags for suspicious or malicious behavior on the specified blockchain network.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network"
      },
      "address": {
       "type": "string",
       "description": "Wallet or contract address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-contract-scan-4eece146/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
