# OnChaiNinja Rug Scanner

> OnChaiNinja Rug Scanner is a paid API for AI agents from onchaininja.vercel.app, paid per call via x402, $1.5/call, status unknown (last checked 2026-09-12).

Scans a token contract address on a specified blockchain and returns a safety score and verdict indicating whether the token is a rug pull risk.

## Facts

- Endpoint: GET https://onchaininja.vercel.app/api/rug/%7Bchain%7D/%7Baddress%7D
- Price: $1.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchaininja-rug-scanner-e4e85cac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cl6sG28T3aOKT2MZQ0zAl

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 onchaininja-rug-scanner-e4e85cac
```

Example prompt: Can you rug-scan the token at address 0xabc123...def on Base and tell me if it's safe — what's its safety score and verdict?

## When to prefer this

Use this endpoint when you need a quick, on-demand rug pull safety check for a specific token contract address on a supported chain (Base, Solana, Arbitrum, etc.). Prefer this over generic on-chain data providers when you want a pre-computed risk score and a clear safe/unsafe verdict rather than raw contract data.

## Known failure modes

- Invalid or unsupported chain identifier returns an error
- Malformed or non-existent contract address returns an error or null result
- Unrecognized address format may result in a failed lookup
- Payment failure (insufficient USDC) prevents the call from completing
- Chain congestion or RPC issues may cause timeout or stale data

## How this service works

Alpha signals, whale tracking, rug scanning, and MEV protection across Base, Solana, Arbitrum, and more.

## Output

Returns a JSON object with a numeric safety score (e.g. 85 out of 100) and a plain-language verdict such as 'SAFE' or 'UNSAFE', indicating whether the scanned token contract is likely a rug pull or legitimate project.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": 85,
  "verdict": "SAFE"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchaininja-rug-scanner-e4e85cac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaininja.vercel.app](https://www.zero.xyz/host/onchaininja.vercel.app/llms.txt)
