TaoWeight

Storage Plain v233 → current

Global TAO weight in economics.

Explore chain
Queried by: developersanalytics

The Big Picture

TAO weight affects how TAO values translate to influence in the network. Higher weight = more TAO influence in economics.

Use Cases

  • Understand TAO economics
  • Research weight dynamics

From Chain Metadata

============================ ==== Staking Variables ==== ============================ The Subtensor [`TotalIssuance`] represents the total issuance of tokens on the Bittensor network. It is comprised of three parts: The total amount of issued tokens, tracked in the TotalIssuance of the Balances pallet The total amount of tokens staked in the system, tracked in [`TotalStake`] The total amount of tokens locked up for subnet reg, tracked in [`TotalSubnetLocked`] attained by iterating over subnet lock. Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this separate accounting. ITEM --> Global weight

Purpose & Usage

Purpose

Control TAO influence in economic calculations.

Common Query Patterns

  • Single value query

Stored Value

Value in RAO (÷10⁹ for TAO)

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 TaoWeight storage (no keys - plain value)
const result = await api.query.SubtensorModule.TaoWeight.getValue();
console.log("TaoWeight:", result);

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v233
Current Version
v411