SubnetRootSellTao
Storage Map v411 → current NewTAO received from root dividend sells on a subnet on the last block . MAP (netuid ) → TaoBalance.
Explore chainQueried by: analyticsdevelopers
The Big Picture
Complement to SubnetExcessTao. Net flow subtracts root sells from the gross inflow to land at the protocol-cost-adjusted figure.
Use Cases
- Measure root-side dividend selling per subnet
- Reconstruct net-flow accounting for emission shares
From Chain Metadata
MAP ( netuid ) --> root_sell_tao | Returns the TAO received from root dividend sells on this subnet on the last block.
Purpose & Usage
Purpose
Tracks root-side TAO sold into a subnet pool, feeding net-flow accounting.
Common Query Patterns
- Query SubnetRootSellTao[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 SubnetRootSellTao storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetRootSellTao.getValue(netuid);
console.log("SubnetRootSellTao:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v411
- Current Version
- v411