SubnetTaoFlow

Storage Map v334 → current

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

Purpose & Usage

Purpose

Track net TAO movement for subnet economics.

Common Query Patterns

  • Query by netuid
Part of: TAO Flow

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (i64)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query SubnetTaoFlow storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("SubnetTaoFlow")](
  key1
);

console.log("SubnetTaoFlow:", result.toHuman());

Runtime Info

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