NumStakingColdkeys
Storage Plain v334 → currentTotal count of unique coldkeys with stake .
Explore chainQueried by: analytics
The Big Picture
High-level metric for network participation. Shows how many unique wallets have active stake positions, indicating ecosystem engagement.
Use Cases
- Display total staker count
- Track network participation growth
- Build ecosystem health dashboards
Purpose & Usage
Purpose
Track unique staker count across the network.
Common Query Patterns
- Single value query
Stored Value
Value in RAO (÷10⁹ for TAO)
RAO -> TAO (/ 10^9)
Default Value
0 0x0000000000000000
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Relationships
Modified By
Related Events
AddStakeBurnAggregatedLimitedStakeAddedAggregatedLimitedStakeRemovedAggregatedStakeAddedAggregatedStakeRemovedAggregatedUnstakeAllAlphaFailedAggregatedUnstakeAllAlphaSucceededAggregatedUnstakeAllFailedAggregatedUnstakeAllSucceededAllBalanceUnstakedAndTransferredToNewColdkeyAutoStakeAddedColdkeySwappedStakeAddedStakeRemoved
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 NumStakingColdkeys storage (no keys - plain value)
const result = await api.query.SubtensorModule.NumStakingColdkeys.getValue();
console.log("NumStakingColdkeys:", result);On-Chain Activity
Write Frequency
●●●●○○ Medium 100K–1M est. writes
100K to 1M writes
#193 most written storage item
Write Source Calls + Hooks
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v334
- Current Version
- v490