API referenceAccounts
Account Stake Flow
Last updated
Fetch one account's StakeAdded vs StakeRemoved flow per subnet over a recent window (7d/30d/90d): per-subnet net and gross flow with a direction label (accumulating/exiting/churning/idle), plus account totals, an HHI concentration of where the flow is focused, and the dominant subnet — summed live from the account_events D1 tier. ?direction=all|in|out filters to inflow (StakeAdded) or outflow (StakeRemoved) only; omitted defaults to all.
Path Parameters
ss58*string
Query Parameters
window?string
Value in
- "7d"
- "30d"
- "90d"
direction?string
Value in
- "all"
- "in"
- "out"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/accounts/string/stake-flow"{ "data": { "address": "example", "concentration": 1, "direction": "accumulating", "dominant_netuid": 1, "flow_ratio": 0.6, "gross_flow_tao": 2.5, "net_flow_tao": 1.5, "schema_version": 1, "stake_events": 3, "subnet_count": 1, "subnets": [ { "direction": "accumulating", "flow_ratio": 0.6, "gross_flow_tao": 2.5, "net_flow_tao": 1.5, "netuid": 1, "stake_events": 3, "staked_tao": 2, "unstake_events": 1, "unstaked_tao": 0.5 } ], "total_staked_tao": 2, "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}Empty
{ "data": null, "error": { "code": "string", "message": "string" }, "meta": { "artifact_path": "string", "cache": "short", "contract_version": "string", "generated_at": "string", "pagination": { "collection": "string", "cursor": 0, "limit": 0, "next_cursor": 0, "order": "asc", "returned": 0, "sort": "string", "total": 0 }, "published_at": "2019-08-24T14:15:22Z", "source": "string", "stale_contract": { "built_under": "string", "live": "string" } }, "ok": false, "schema_version": 1}{ "data": null, "error": { "code": "string", "message": "string" }, "meta": { "artifact_path": "string", "cache": "short", "contract_version": "string", "generated_at": "string", "pagination": { "collection": "string", "cursor": 0, "limit": 0, "next_cursor": 0, "order": "asc", "returned": 0, "sort": "string", "total": 0 }, "published_at": "2019-08-24T14:15:22Z", "source": "string", "stale_contract": { "built_under": "string", "live": "string" } }, "ok": false, "schema_version": 1}{ "data": null, "error": { "code": "string", "message": "string" }, "meta": { "artifact_path": "string", "cache": "short", "contract_version": "string", "generated_at": "string", "pagination": { "collection": "string", "cursor": 0, "limit": 0, "next_cursor": 0, "order": "asc", "returned": 0, "sort": "string", "total": 0 }, "published_at": "2019-08-24T14:15:22Z", "source": "string", "stale_contract": { "built_under": "string", "live": "string" } }, "ok": false, "schema_version": 1}{ "data": null, "error": { "code": "string", "message": "string" }, "meta": { "artifact_path": "string", "cache": "short", "contract_version": "string", "generated_at": "string", "pagination": { "collection": "string", "cursor": 0, "limit": 0, "next_cursor": 0, "order": "asc", "returned": 0, "sort": "string", "total": 0 }, "published_at": "2019-08-24T14:15:22Z", "source": "string", "stale_contract": { "built_under": "string", "live": "string" } }, "ok": false, "schema_version": 1}