Queried by: analyticsdevelopers
The Big Picture
TAO flows into subnets via emissions. This tracks the rate of TAO entering each subnet from the emission system.
Use Cases
- Track emission rates
- Research subnet economics
- Build emission dashboards
Purpose & Usage
Purpose
Track TAO inflow rate from emissions.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
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 SubnetTaoInEmission storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("SubnetTaoInEmission")](
key1
);
console.log("SubnetTaoInEmission:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v233
- Current Version
- v393