This storage item was removed in v306
This storage item is no longer available in the current runtime. Existed from v101 to v306. Shown here for historical reference.
NetworkModality
Storage Removed Map v101 → v411--- MAP ( netuid ) --> modality TEXT: 0, IMAGE: 1, TENSOR: 2
From Chain Metadata
MAP ( netuid ) --> modality TEXT: 0, IMAGE: 1, TENSOR: 2
Purpose & Usage
Purpose
Stores chain state data.
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | u16 | netuid (u16, hashed key component) |
Stored Value
modality (u16)
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 NetworkModality storage
const netuid = 1;
const result = await api.query.SubtensorModule.NetworkModality.getValue(netuid);
console.log("NetworkModality:", result);Version History
v101 block 1 Added
v123 block 720,235 Internal re-bind
v149 block 3,014,339 Internal re-bind
v166–v194 · runtime versions skipped on chain (never deployed)
v195 block 3,791,350 Internal re-bind
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Internal re-bind
v306 Removed
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Removed In
- v306