SubnetExcessTao

Storage Map v411 → current New

Excess TAO swapped (chain buys) into a subnet on the last block . MAP (netuid ) → TaoBalance.

Explore chain
Queried 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]
Part of: Net TAO Flow Accounting

Query Keys

#NameTypeDescription
1
netuid
u16 netuid (u16, hashed key component)

Stored Value

excess_tao (u64)

RAO -> TAO (/ 10^9)

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