API REFERENCE
Alert Schema
The standardized JSON structure emitted by REST and WebSocket endpoints.
Schema Fields
| Field | Type | Description |
|---|---|---|
| id | string | Unique hex identifier for the alert. |
| protocol | string | Public key of the monitored protocol. |
| rule_triggered | string | One of: FLASH_LOAN_DRAIN, TVL_VELOCITY, BRIDGE_SPIKE. |
| severity | number | Calculated score (0–99). |
| estimated_at_risk_usd | number | Estimated USD value affected in the slot. |
| slot | number | The Solana slot number where the event occurred. |
| on_chain_tx | string | null | Transaction signature of the automated pause CPI, if executed. |
| created_at | string | ISO 8601 timestamp. |
Example Payload
A real alert object returned by the REST API or emitted over the WebSocket feed.
alert.jsonjson
{
"id": "a1b2c3d4e5f6",
"protocol": "9W95BjbZuXdwf6p7X3bHu3wnMb2R5y7A4K",
"rule_triggered": "TVL_VELOCITY",
"severity": 87,
"estimated_at_risk_usd": 125000,
"on_chain_tx": "5KtPn1LGuxhFiwjxErkxTb57Jvmh4Me5GA4K9v7FWE1vL4jE8D2m8HrZ3bVtBQzPLr",
"slot": 245012344,
"created_at": "2026-05-15T10:23:41.000Z"
}