SubnetExcessTao
Storage Map v411 → current NewExcess TAO swapped (chain buys) into a subnet on the last block . MAP (netuid ) → TaoBalance.
Explore chainQueried by: analyticsdevelopers
The Big Picture
One input to net TAO flow: how much TAO has been swapped into the subnet pool beyond what the emission injection supplied.
Use Cases
- Measure chain-buy activity per subnet per block
- Reconstruct net-flow accounting for emission shares
From Chain Metadata
MAP ( netuid ) --> excess_tao | Returns the excess TAO swapped (chain buys) into this subnet on the last block.
Purpose & Usage
Purpose
Tracks chain-buy TAO inflows used in net-flow accounting.
Common Query Patterns
- Query SubnetExcessTao[netuid]
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | u16 | netuid (u16, hashed key component) |
Stored Value
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 SubnetExcessTao storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetExcessTao.getValue(netuid);
console.log("SubnetExcessTao:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v411
- Current Version
- v411