SubnetEmaTaoFlow

Storage Map v334 → current

EMA of TAO inflow-outflow balance per subnet .

Explore chain
Queried by: analyticsdevelopers

The Big Picture

Raw TAO flow is volatile. This EMA provides a smoothed view of flow dynamics, used in economic calculations for subnet weight.

Use Cases

  • Monitor smoothed flow trends
  • Research subnet economics
  • Build flow dashboards

Purpose & Usage

Purpose

Smoothed tracking of TAO flow for subnet economics.

Common Query Patterns

  • Query by netuid
Part of: TAO Flow

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

Value in RAO (÷10⁹ for TAO)

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 SubnetEmaTaoFlow storage
const key1 = 0;

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

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

Runtime Info

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