AutoStakeDestinationColdkeys

Storage Map v326 → v411

Coldkeys using auto-stake on a subnet .

Explore chain
Queried by: analyticsdevelopersvalidators

The 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

#NameTypeDescription
1
hot
AccountId hot (AccountId, hashed key component) (hex -> SS58)
2
netuid
u16 netuid (u16, hashed key component)

Stored Value

Vec<cold> (Vec<AccountId>)

Relationships

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

v326 block 6,608,228 Added
v327–v333 · runtime versions skipped on chain (never deployed)
v334 block 6,811,690 Internal re-bind
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind
v386–v390 · runtime versions skipped on chain (never deployed)
v391 block 7,782,857 Internal re-bind
v394–v400 · runtime versions skipped on chain (never deployed)
v401 block 8,036,576 Internal re-bind Current

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v326
Current Version
v411