# OnChaiNinja Rug Scanner

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

Scans a token or contract address on a specified blockchain chain and returns a rug pull risk score and safety verdict

## Facts

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

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-a8d726ba
```

Example prompt: Can you run a rug scan on this Base network contract 0x1234567890abcdef1234567890abcdef12345678 and tell me if it's safe to buy?

## When to prefer this

Use this endpoint when you need a quick, paid, per-call rug pull safety assessment for a specific token or contract address on supported chains including Base, Solana, and Arbitrum. Prefer this over free alternatives when you need a structured score and verdict with multi-chain support in a single API call.

## Known failure modes

- Unsupported chain name returns an error or empty result
- Invalid or malformed contract address returns an error
- Contract not yet indexed on the supported chain returns no data
- Rate limiting or payment failure returns 402 or 429
- Newly deployed contracts may have insufficient on-chain data for scoring

## 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 risk score (e.g. 85 out of 100) and a categorical verdict such as SAFE or UNSAFE, indicating the likelihood that the contract is a rug pull or scam.

## 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-a8d726ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402ninja.vercel.app](https://www.zero.xyz/host/x402ninja.vercel.app/llms.txt)
