AlphaV2
Storage Map v401 → current New--- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey , coldkey , netuid triplet, stores SafeFloat.
Explore chainFrom Chain Metadata
NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet, stores SafeFloat.
Purpose & Usage
Purpose
Stores chain state data.
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
Stored Value
value (SafeFloat)
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Query AlphaV2 storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key3 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("AlphaV2")](
key1,
key2,
key3
);
console.log("AlphaV2:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v401
- Current Version
- v401