API & MCP
Everything a person can do on Blockchain Incident Replay, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://blockchainincidentreplay.usefulweb.site/api/v1/calculate– run Blockchain Incident ReplayGET https://blockchainincidentreplay.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Blockchain Incident Replay
Reconstructs an on-chain incident from one or more transactions: decodes each one, tries a call trace for internal ETH movements, nets every ETH and token transfer per address, and highlights the likely attacker cluster, its profit and the biggest losers — as an ordered timeline and a value-flow graph. Works without live chain lookups on pasted receipts.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (live, pasted) | "live" | Data source |
chain | select (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc) | "ethereum" | Chain |
txHashes | list | — | Transaction hashes (in any order). Up to 5; they are ordered by block and index. |
receipts | textarea | — | Pasted receipts JSON. Array of receipts with transactionHash, from, to, value, blockNumber, transactionIndex, status, logs (optionally timestamp, gasUsed, effectiveGasPrice, contractAddress, functionName). Or {"receipts":[…],"tokens":{address:{symbol,decimals}}}. |
tokens | textarea | — | Token metadata JSON (pasted mode) |
prices | boolean | true | Value in USD at incident time (DefiLlama) |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://blockchainincidentreplay.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
blockchain_incident_replay - Local stdio connector:
node src/mcp-stdio.ts --tool=blockchain-incident-replay
{
"mcpServers": {
"blockchain-incident-replay": { "type": "http", "url": "https://blockchainincidentreplay.usefulweb.site/mcp" }
}
}