Skip to main content
API referenceSubnets

Subnet Event Summary

Last updated

GET
/api/v1/subnets/{netuid}/event-summary

Fetch a windowed event summary for one subnet: account_events counts by kind and coarse category, distinct hotkey/coldkey counts, TAO/alpha sums where applicable, first/last evidence bounds, plus a newest-first evidence slice. ?window=7d|30d|90d (default 30d); ?limit caps recent_events (default 10, max 50). Computed live from the account_events D1 tier.

Path Parameters

netuid*integer
Range0 <= value

Query Parameters

window?string

Value in

  • "7d"
  • "30d"
  • "90d"
limit?integer
Range1 <= value <= 50

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/subnets/0/event-summary"
{  "data": {    "categories": [      {        "alpha_amount": 0.5,        "amount_tao": 0.5,        "category": "registration",        "event_count": 1,        "first_block": 5000000,        "first_observed_at": "2026-06-01T00:00:00.000Z",        "kind_count": 1,        "last_block": 5000000,        "last_observed_at": "2026-06-01T00:00:00.000Z"      }    ],    "category_count": 1,    "event_kinds": [      {        "alpha_amount": 0.5,        "amount_tao": 0.5,        "category": "registration",        "coldkey_count": 1,        "event_count": 1,        "event_kind": "example",        "first_block": 5000000,        "first_observed_at": "2026-06-01T00:00:00.000Z",        "hotkey_count": 1,        "last_block": 5000000,        "last_observed_at": "2026-06-01T00:00:00.000Z"      }    ],    "kind_count": 1,    "limit": 1,    "netuid": 7,    "observed_at": "2026-06-01T00:00:00.000Z",    "recent_event_count": 1,    "recent_events": [      {        "block_number": 5000000,        "event_kind": "example"      }    ],    "schema_version": 1,    "total_events": 1,    "window": "7d"  },  "meta": {    "artifact_path": "example",    "cache": "short",    "contract_version": "2026-06-29.1",    "generated_at": "2026-06-01T00:00:00.000Z",    "pagination": {      "collection": "example",      "cursor": 1,      "limit": 1,      "next_cursor": 1,      "order": "asc",      "returned": 1,      "sort": "example",      "total": 1    },    "published_at": "2026-06-01T00:00:00.000Z",    "source": "live-cron-prober",    "stale_contract": {      "built_under": "example",      "live": "example"    }  },  "ok": true,  "schema_version": 1}