{
  "x402Version": 2,
  "id": 72088,
  "slug": "saylorinnovations-api-defi-hacks",
  "resource": "https://saylorinnovations.com/api/defi/hacks",
  "description": "Crypto hacks and exploits - DefiLlama database of 1,300 incidents with amount lost, chain, technique, classification and totals by year, filterable by chain",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "hacks": {
        "type": "number"
      },
      "total_lost_usd": {
        "type": "number",
        "description": "Total lost usd"
      },
      "bridge_hacks": {
        "type": "number",
        "description": "Bridge hacks"
      },
      "by_year": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "By year"
      },
      "by_classification": {
        "type": "array",
        "items": {
          "type": "object"
        },
        "description": "By classification"
      },
      "incidents": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Name"
            },
            "date": {
              "type": "string",
              "description": "Date (YYYY-MM-DD)"
            },
            "lost_usd": {
              "type": [
                "number",
                "null"
              ],
              "description": "Lost, in US dollars"
            },
            "chains": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Chains covered"
            },
            "classification": {
              "type": [
                "string",
                "null"
              ],
              "description": "Classification assigned by the source"
            },
            "technique": {
              "type": [
                "string",
                "null"
              ]
            },
            "target": {
              "description": "Target value or target date"
            },
            "bridge": {},
            "returned_usd": {
              "description": "Returned, in US dollars"
            },
            "source": {
              "description": "Data source the values come from"
            }
          }
        }
      },
      "filters": {
        "description": "Filters applied to this query"
      },
      "returned_usd": {
        "type": [
          "number",
          "null"
        ],
        "description": "Returned, in US dollars"
      },
      "sorted_by": {
        "type": [
          "string",
          "null"
        ],
        "description": "Sorted by"
      },
      "source": {
        "type": [
          "string",
          "null"
        ],
        "description": "Data source the values come from"
      },
      "checked_at": {
        "type": [
          "string",
          "null"
        ],
        "description": "Time the check was run (UTC)"
      }
    },
    "required": [
      "hacks",
      "incidents"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "chain": "ethereum",
            "limit": "5",
            "year": "2024"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "filters": {
              "chain": "ethereum",
              "classification": null,
              "year": "2024"
            },
            "hacks": 100,
            "total_lost_usd": 960892892,
            "bridge_hacks": 4,
            "returned_usd": 5100000,
            "by_year": [
              {
                "year": 2024,
                "count": 100,
                "lost_usd": 960892892
              }
            ],
            "by_classification": [
              {
                "name": "Key Compromise",
                "count": 14,
                "lost_usd": 427884500
              },
              {
                "name": "Social Engineering",
                "count": 8,
                "lost_usd": 250555000
              },
              {
                "name": "Input Validation",
                "count": 9,
                "lost_usd": 60663000
              },
              {
                "name": "Frontend & Infrastructure",
                "count": 7,
                "lost_usd": 58831000
              },
              {
                "name": "Token & Share Accounting",
                "count": 11,
                "lost_usd": 51234000
              },
              {
                "name": "Access Control",
                "count": 21,
                "lost_usd": 50131692
              },
              {
                "name": "Reentrancy",
                "count": 4,
                "lost_usd": 28953000
              },
              {
                "name": "Oracle Manipulation",
                "count": 8,
                "lost_usd": 26021000
              }
            ],
            "sorted_by": "amount",
            "incidents": [
              {
                "name": "PlayDapp",
                "date": "2024-02-09",
                "lost_usd": 290000000,
                "chains": [
                  "Ethereum"
                ],
                "classification": "Key Compromise",
                "technique": "Hot Wallet Key Compromised",
                "target": "DeFi Protocol",
                "bridge": false,
                "returned_usd": null,
                "source": null
              },
              {
                "name": "WazirX: India",
                "date": "2024-07-18",
                "lost_usd": 234900000,
                "chains": [
                  "Ethereum"
                ],
                "classification": "Social Engineering",
                "technique": "Signer Phishing",
                "target": "CEX",
                "bridge": false,
                "returned_usd": null,
                "source": null
              },
              {
                "name": "Hedgey",
                "date": "2024-04-19",
                "lost_usd": 44700000,
                "chains": [
                  "Arbitrum",
                  "Ethereum"
                ],
                "classification": "Input Validation",
                "technique": "Missing Input Validation",
                "target": "DeFi Protocol",
                "bridge": false,
                "returned_usd": null,
                "source": null
              }
            ],
            "source": "DefiLlama hacks database"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "optional chain, e.g. ethereum, solana, bsc, arbitrum"
                  },
                  "limit": {
                    "type": "string",
                    "description": "optional 1-50, default 10"
                  },
                  "year": {
                    "type": "string",
                    "description": "optional four-digit year"
                  }
                }
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "hacks": {
                    "type": "number"
                  },
                  "total_lost_usd": {
                    "type": "number",
                    "description": "Total lost usd"
                  },
                  "bridge_hacks": {
                    "type": "number",
                    "description": "Bridge hacks"
                  },
                  "by_year": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "By year"
                  },
                  "by_classification": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "By classification"
                  },
                  "incidents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Name"
                        },
                        "date": {
                          "type": "string",
                          "description": "Date (YYYY-MM-DD)"
                        },
                        "lost_usd": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Lost, in US dollars"
                        },
                        "chains": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Chains covered"
                        },
                        "classification": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Classification assigned by the source"
                        },
                        "technique": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "target": {
                          "description": "Target value or target date"
                        },
                        "bridge": {},
                        "returned_usd": {
                          "description": "Returned, in US dollars"
                        },
                        "source": {
                          "description": "Data source the values come from"
                        }
                      }
                    }
                  },
                  "filters": {
                    "description": "Filters applied to this query"
                  },
                  "returned_usd": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Returned, in US dollars"
                  },
                  "sorted_by": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Sorted by"
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Data source the values come from"
                  },
                  "checked_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Time the check was run (UTC)"
                  }
                },
                "required": [
                  "hacks",
                  "incidents"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "defi hacks",
    "crypto exploits",
    "rekt",
    "smart contract exploits",
    "bridge hacks"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.846Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string",
          "description": "optional chain, e.g. ethereum, solana, bsc, arbitrum"
        },
        "limit": {
          "type": "string",
          "description": "optional 1-50, default 10"
        },
        "year": {
          "type": "string",
          "description": "optional four-digit year"
        }
      },
      "required": []
    },
    "exampleResponse": {
      "filters": {
        "chain": "ethereum",
        "classification": null,
        "year": "2024"
      },
      "hacks": 100,
      "total_lost_usd": 960892892,
      "bridge_hacks": 4,
      "returned_usd": 5100000,
      "by_year": [
        {
          "year": 2024,
          "count": 100,
          "lost_usd": 960892892
        }
      ],
      "by_classification": [
        {
          "name": "Key Compromise",
          "count": 14,
          "lost_usd": 427884500
        },
        {
          "name": "Social Engineering",
          "count": 8,
          "lost_usd": 250555000
        },
        {
          "name": "Input Validation",
          "count": 9,
          "lost_usd": 60663000
        },
        {
          "name": "Frontend & Infrastructure",
          "count": 7,
          "lost_usd": 58831000
        },
        {
          "name": "Token & Share Accounting",
          "count": 11,
          "lost_usd": 51234000
        },
        {
          "name": "Access Control",
          "count": 21,
          "lost_usd": 50131692
        },
        {
          "name": "Reentrancy",
          "count": 4,
          "lost_usd": 28953000
        },
        {
          "name": "Oracle Manipulation",
          "count": 8,
          "lost_usd": 26021000
        }
      ],
      "sorted_by": "amount",
      "incidents": [
        {
          "name": "PlayDapp",
          "date": "2024-02-09",
          "lost_usd": 290000000,
          "chains": [
            "Ethereum"
          ],
          "classification": "Key Compromise",
          "technique": "Hot Wallet Key Compromised",
          "target": "DeFi Protocol",
          "bridge": false,
          "returned_usd": null,
          "source": null
        },
        {
          "name": "WazirX: India",
          "date": "2024-07-18",
          "lost_usd": 234900000,
          "chains": [
            "Ethereum"
          ],
          "classification": "Social Engineering",
          "technique": "Signer Phishing",
          "target": "CEX",
          "bridge": false,
          "returned_usd": null,
          "source": null
        },
        {
          "name": "Hedgey",
          "date": "2024-04-19",
          "lost_usd": 44700000,
          "chains": [
            "Arbitrum",
            "Ethereum"
          ],
          "classification": "Input Validation",
          "technique": "Missing Input Validation",
          "target": "DeFi Protocol",
          "bridge": false,
          "returned_usd": null,
          "source": null
        }
      ],
      "source": "DefiLlama hacks database"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "chain": "ethereum",
              "limit": "5",
              "year": "2024"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "filters": {
                "chain": "ethereum",
                "classification": null,
                "year": "2024"
              },
              "hacks": 100,
              "total_lost_usd": 960892892,
              "bridge_hacks": 4,
              "returned_usd": 5100000,
              "by_year": [
                {
                  "year": 2024,
                  "count": 100,
                  "lost_usd": 960892892
                }
              ],
              "by_classification": [
                {
                  "name": "Key Compromise",
                  "count": 14,
                  "lost_usd": 427884500
                },
                {
                  "name": "Social Engineering",
                  "count": 8,
                  "lost_usd": 250555000
                },
                {
                  "name": "Input Validation",
                  "count": 9,
                  "lost_usd": 60663000
                },
                {
                  "name": "Frontend & Infrastructure",
                  "count": 7,
                  "lost_usd": 58831000
                },
                {
                  "name": "Token & Share Accounting",
                  "count": 11,
                  "lost_usd": 51234000
                },
                {
                  "name": "Access Control",
                  "count": 21,
                  "lost_usd": 50131692
                },
                {
                  "name": "Reentrancy",
                  "count": 4,
                  "lost_usd": 28953000
                },
                {
                  "name": "Oracle Manipulation",
                  "count": 8,
                  "lost_usd": 26021000
                }
              ],
              "sorted_by": "amount",
              "incidents": [
                {
                  "name": "PlayDapp",
                  "date": "2024-02-09",
                  "lost_usd": 290000000,
                  "chains": [
                    "Ethereum"
                  ],
                  "classification": "Key Compromise",
                  "technique": "Hot Wallet Key Compromised",
                  "target": "DeFi Protocol",
                  "bridge": false,
                  "returned_usd": null,
                  "source": null
                },
                {
                  "name": "WazirX: India",
                  "date": "2024-07-18",
                  "lost_usd": 234900000,
                  "chains": [
                    "Ethereum"
                  ],
                  "classification": "Social Engineering",
                  "technique": "Signer Phishing",
                  "target": "CEX",
                  "bridge": false,
                  "returned_usd": null,
                  "source": null
                },
                {
                  "name": "Hedgey",
                  "date": "2024-04-19",
                  "lost_usd": 44700000,
                  "chains": [
                    "Arbitrum",
                    "Ethereum"
                  ],
                  "classification": "Input Validation",
                  "technique": "Missing Input Validation",
                  "target": "DeFi Protocol",
                  "bridge": false,
                  "returned_usd": null,
                  "source": null
                }
              ],
              "source": "DefiLlama hacks database"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "optional chain, e.g. ethereum, solana, bsc, arbitrum"
                    },
                    "limit": {
                      "type": "string",
                      "description": "optional 1-50, default 10"
                    },
                    "year": {
                      "type": "string",
                      "description": "optional four-digit year"
                    }
                  }
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "hacks": {
                      "type": "number"
                    },
                    "total_lost_usd": {
                      "type": "number",
                      "description": "Total lost usd"
                    },
                    "bridge_hacks": {
                      "type": "number",
                      "description": "Bridge hacks"
                    },
                    "by_year": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "By year"
                    },
                    "by_classification": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "By classification"
                    },
                    "incidents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Name"
                          },
                          "date": {
                            "type": "string",
                            "description": "Date (YYYY-MM-DD)"
                          },
                          "lost_usd": {
                            "type": [
                              "number",
                              "null"
                            ],
                            "description": "Lost, in US dollars"
                          },
                          "chains": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Chains covered"
                          },
                          "classification": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Classification assigned by the source"
                          },
                          "technique": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "target": {
                            "description": "Target value or target date"
                          },
                          "bridge": {},
                          "returned_usd": {
                            "description": "Returned, in US dollars"
                          },
                          "source": {
                            "description": "Data source the values come from"
                          }
                        }
                      }
                    },
                    "filters": {
                      "description": "Filters applied to this query"
                    },
                    "returned_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Returned, in US dollars"
                    },
                    "sorted_by": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Sorted by"
                    },
                    "source": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Data source the values come from"
                    },
                    "checked_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Time the check was run (UTC)"
                    }
                  },
                  "required": [
                    "hacks",
                    "incidents"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/defi/hacks?chain=ethereum&year=2024&limit=5",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "hacks": 0,
    "total_lost_usd": 0,
    "bridge_hacks": 0,
    "by_year": [
      {}
    ],
    "by_classification": [
      {}
    ],
    "incidents": [
      {
        "name": "string",
        "date": "string",
        "lost_usd": 0,
        "chains": [
          "string"
        ],
        "classification": "string",
        "technique": "string",
        "target": null,
        "bridge": null,
        "returned_usd": null,
        "source": null
      }
    ],
    "filters": null,
    "returned_usd": 0,
    "sorted_by": "string",
    "source": "string",
    "checked_at": "string"
  }
}