Chain Stake Flow
Last updated
Fetch network-wide cross-subnet capital flow over a 7d or 30d window: every subnet that moved stake in the window ranked by net StakeAdded minus StakeRemoved TAO (subnets with no stake events in the window are excluded) (biggest net inflow first, ?limit <=100), with per-subnet staked/unstaked/net/gross totals and a direction label, a network rollup, and a distribution (count, mean, min, p25, median, p75, p90, max) of the per-subnet net flow. Computed live from the account_events stake stream; schema-stable zeros + empty leaderboard when cold.
Query Parameters
Value in
- "7d"
- "30d"
1 <= value <= 100Response format override. Use csv to download the per-subnet capital-flow leaderboard as text/csv; json (default) keeps the response envelope (which also carries the network rollup + net-flow distribution).
Value in
- "json"
- "csv"
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/chain/stake-flow"{ "data": { "net_flow_distribution": { "count": 1, "max": 0.5, "mean": 0.5, "median": 0.5, "min": 0.5, "p25": 0.5, "p75": 0.5, "p90": 0.5 }, "network": { "flat": 1, "gaining": 1, "gross_flow_tao": 0.5, "losing": 1, "net_flow_tao": 0.5, "stake_events": 1, "total_staked_tao": 0.5, "total_unstaked_tao": 0.5, "unstake_events": 1 }, "observed_at": "2026-06-01T00:00:00.000Z", "schema_version": 1, "subnet_count": 1, "subnets": [ { "direction": "inflow", "gross_flow_tao": 0.5, "net_flow_tao": 0.5, "netuid": 7, "stake_events": 1, "total_staked_tao": 0.5, "total_unstaked_tao": 0.5, "unstake_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}