# Crypto Hack & Rekt Database Leaderboard

> Crypto Hack & Rekt Database Leaderboard is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns a ranked leaderboard of the largest cryptocurrency hacks and DeFi exploits by financial loss, sourced from rekt.news

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/crypto-hack-rekt-database?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-hack-rekt-database-leaderboard-637455b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DUIZhEAkEkx4MW9ScU8kq

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 crypto-hack-rekt-database-leaderboard-637455b2
```

Example prompt: Pull the top 25 biggest crypto hacks and DeFi exploits ever recorded, ranked by how much money was lost, so I can see which protocols got rekt the hardest.

## When to prefer this

Choose this endpoint when you need a ranked historical leaderboard of cryptocurrency hacks and DeFi exploits by financial loss, sourced from rekt.news. Prefer this over general crypto price feeds or news APIs when the goal is specifically to understand the magnitude and ranking of historical security breaches. Ideal for security research, due diligence, investment risk analysis, or educational content about blockchain vulnerabilities.

## Known failure modes

- Invalid limit value (outside 1-50 range) may result in an error or default behavior
- Upstream rekt.news data unavailability could cause stale or failed responses
- Payment failure results in HTTP 402 with no charge
- Network timeout from the Cloudflare Worker if upstream source is slow

## How this service works

Rekt News leaderboard of the largest crypto hacks and exploits: rank, incident name, audit status as listed, loss in USD and date, from the public page (top 1 to 50). Root-cause write-ups and attack technique (e.g. flash loans) are not in the list and are not reported.

## Output

Returns a JSON object with a count, source URL (rekt.news leaderboard), a checkedAt timestamp, and an array of incident objects each containing rank, date, loss amount in USD, and the project name with audit status. Results are sorted descending by financial loss.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "How many top incidents, 1 to 50 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 10,
  "source": "https://rekt.news/leaderboard/",
  "checkedAt": "2026-10-23T09:36:07.380Z",
  "incidents": [
   {
    "date": "12/20/2020",
    "rank": 1,
    "lossUsd": 14847374246,
    "nameAndAudit": "The One That Got Away N/A"
   },
   {
    "date": "2/21/2025",
    "rank": 2,
    "lossUsd": 1436173027,
    "nameAndAudit": "ByBit - Rekt N/A"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-hack-rekt-database-leaderboard-637455b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
