TotalStake

Storage Plain v101 → current

Total TAO staked across all hotkeys.

Explore chain
Queried by: analyticsvalidatorswallets

The Big Picture

Total stake represents the aggregate economic commitment to Bittensor's security. Higher total stake means more TAO is actively participating in consensus rather than sitting idle. This single number reflects network-wide confidence in validation.

Why This Matters

Want to know how much TAO is actively working in the network? This is the headline number for staking participation - the total value backing all validators combined.

Example Scenario

Query TotalStake() returns 150000000000000000000 (150M TAO in RAO). Divide by 10^9 to get 150 million TAO staked network-wide. Compare to TotalIssuance to get staking ratio.

Common Questions

Does this include all subnets?
Yes, this is the aggregate across all subnets and all hotkeys on the entire network.
How often does this update?
Updates with every stake/unstake operation, so it reflects real-time network state.

Use Cases

  • Calculate staking ratio (total staked vs total supply)
  • Track network-wide staking trends over time
  • Monitor economic health of the network
  • Build dashboard metrics for ecosystem health

Purpose & Usage

Purpose

Global network stake tracking for consensus and economics.

Common Query Patterns

  • Single value query for network-wide stake
Part of: Stake Operations

Stored Value

Total TAO staked network-wide (RAO)

RAO -> TAO (/ 10^9)

Relationships

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

On-Chain Activity

Write Frequency
●●●●●● Ultra-High >10M est. writes

>10M estimated writes

#8 most written storage item

Write Source User Extrinsics

Modified via user-submitted extrinsics

As of block 7,429,232

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v101
Current Version
v393