AssociatedUidsByEvmAddress
Storage Map v432 → currentDMAP (netuid , H160) --> associated UIDs and last block where ownership was proven.
Explore chainFrom Chain Metadata
DMAP (netuid, H160) --> associated UIDs and last block where ownership was proven.
Purpose & Usage
Purpose
Stores chain state data.
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
Stored Value
associated (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 AssociatedUidsByEvmAddress storage
const netuid = 1;
const H160 = "0x0000000000000000000000000000000000000000";
const result = await api.query.SubtensorModule.AssociatedUidsByEvmAddress.getValue(netuid, H160);
console.log("AssociatedUidsByEvmAddress:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v432
- Current Version
- v472