Queried by: subnet ownersdevelopersanalytics
The Big Picture
The scaling law power affects how values scale in consensus calculations. Different powers create different competitive dynamics.
Use Cases
- Understand subnet consensus dynamics
- Research scaling effects
- Compare subnets
Purpose & Usage
Purpose
Control scaling relationship in consensus calculations.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
value (u16)
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 ScalingLawPower storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("ScalingLawPower")](
key1
);
console.log("ScalingLawPower:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393