ColdkeyCollateralHotkeys
Storage Map v437 → currentDMAP ( netuid , coldkey ) --> BoundedVec of hotkeys
Explore chainFrom Chain Metadata
DMAP ( netuid, coldkey ) --> BoundedVec of hotkeys Hotkeys with a standing [`MinerCollateral`] row for this coldkey on the subnet. Kept in sync by collateral create / remove / swap paths so coldkey swaps migrate bonds with a bounded indexed walk (see [`MAX_COLDKEY_COLLATERAL_HOTKEYS`]) instead of scanning unbounded association vectors.
Purpose & Usage
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
Stored Value
BoundedVec (BoundedVec)
Default Value
0x00 (raw SCALE bytes)
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
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 ColdkeyCollateralHotkeys storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeyCollateralHotkeys.getValue(netuid, coldkey);
console.log("ColdkeyCollateralHotkeys:", result);On-Chain Activity
Write Frequency
●●○○○○ Minimal <10K est. writes
Fewer than 10K writes
#223 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
- Map
- First Version
- v437
- Current Version
- v490