SubnetTaoFlow

Storage Map v334 → v411

TAO inflow-outflow balance per subnet .

Explore chain
Queried by: analyticsdevelopers

The Big Picture

TAO flows in (staking) and out (unstaking) of subnets. This signed value tracks the net flow, used in economic calculations for subnet weight.

Use Cases

  • Monitor TAO flow dynamics
  • Research subnet economics
  • Build flow dashboards

From Chain Metadata

MAP ( netuid ) --> subnet_tao_flow | Returns the TAO inflow-outflow balance.

Purpose & Usage

Purpose

Track net TAO movement for subnet economics.

Common Query Patterns

  • Query by netuid
Part of: TAO Flow

Query Keys

#NameTypeDescription
1
netuid
u16 netuid (u16, hashed key component)

Stored Value

subnet_tao_flow (i64)

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query SubnetTaoFlow storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetTaoFlow.getValue(netuid);
console.log("SubnetTaoFlow:", result);

Version History

v334 block 6,811,690 Added
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind
v394–v400 · runtime versions skipped on chain (never deployed)
v401 block 8,036,576 Internal re-bind Current

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v334
Current Version
v411