EMAPriceHalvingBlocks
Storage Map v252 → v411Blocks for EMA price to halve per subnet .
Explore chainQueried by: developersanalytics
The Big Picture
EMA (Exponential Moving Average) is used for price smoothing. This parameter controls the half-life - how many blocks for the EMA influence to halve. Longer = smoother, shorter = more responsive.
Use Cases
- Understand price smoothing dynamics
- Build price prediction models
- Research subnet economics
From Chain Metadata
MAP ( netuid ) --> Halving time of average moving price.
Purpose & Usage
Purpose
Control how quickly exponential moving average price decays.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | u16 | netuid (u16, hashed key component) |
Stored Value
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 EMAPriceHalvingBlocks storage
const netuid = 1;
const result = await api.query.SubtensorModule.EMAPriceHalvingBlocks.getValue(netuid);
console.log("EMAPriceHalvingBlocks:", result);Version History
v252 block 5,163,656 Added
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Internal re-bind Current
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v252
- Current Version
- v411