LockingColdkeys
Storage Map v423 → v490 · 1 shape changeNMAP ( netuid , hotkey , coldkey ) --> () | Reverse index for non-zero locks targeting this hotkey on this subnet .
Explore chainFrom Chain Metadata
NMAP ( netuid, hotkey, coldkey ) --> () | Reverse index for non-zero locks targeting this hotkey on this subnet.
Purpose & Usage
Purpose
Stores chain state data.
Common Query Patterns
- Query by key
- Iterate all entries
Migration Notes
key type changed from (u16, AccountId, AccountId) to (NetUid, AccountId, AccountId)
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Query Keys
Stored Value
() (())
Default Value
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
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 LockingColdkeys storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LockingColdkeys.getValue(netuid, hotkey, coldkey);
console.log("LockingColdkeys:", result);On-Chain Activity
10K to 100K writes
#203 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- key :
(u16, AccountId, AccountId)→(NetUid, AccountId, AccountId)
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v423
- Current Version
- v490