AutoStakeDestinationColdkeys
Storage Map v326 → v411Coldkeys using auto-stake on a subnet .
Explore chainThe Big Picture
This is the reverse index for auto-stake - given a subnet, who has auto-stake enabled? Useful for analytics and understanding how many users are using automatic compounding. Higher adoption suggests sophisticated, long-term oriented stakers.
Why This Matters
Want to know how many people use auto-stake on a subnet? This storage lets you enumerate them. Useful for measuring feature adoption and understanding staking behavior.
Example Scenario
Query AutoStakeDestinationColdkeys(netuid=1) returns [coldkey_A, coldkey_B, ...]. These coldkeys have auto-stake configured on subnet 1. Iterate to count or analyze auto-stake users.
Common Questions
- Does this include all auto-stake users?
- Yes, any coldkey with an auto-stake destination set for this subnet appears in this list.
- Can I see where each one stakes?
- This gives you the list. Query AutoStakeDestination(coldkey, netuid) for each to see their destination hotkey.
Use Cases
- Measure auto-stake adoption rates
- Build analytics on compound staking behavior
- Index all auto-stake configurations for a subnet
- Research staker behavior patterns
- Understand validator flows from auto-stake
From Chain Metadata
DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey
Purpose & Usage
Purpose
Track which coldkeys have auto-stake enabled - useful for analytics and indexing.
Common Query Patterns
- Iterate auto-stake users by netuid
- Count auto-stake adoption on a subnet
- Build auto-stake analytics
Query Keys
Stored Value
Vec<cold> (Vec<AccountId>)
Relationships
Modified By
Related Events
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 AutoStakeDestinationColdkeys storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.AutoStakeDestinationColdkeys.getValue(hot, netuid);
console.log("AutoStakeDestinationColdkeys:", result);Version History
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v326
- Current Version
- v411