LastAdjustmentBlock
Storage Map v101 → currentBlock of last difficulty /burn adjustment per subnet .
Explore chainQueried by: minersdevelopersanalytics
The Big Picture
Registration difficulty and burn costs adjust periodically. This tracks when the last adjustment occurred. Combined with AdjustmentInterval, you can predict next changes.
Use Cases
- Calculate time until next adjustment
- Monitor adjustment frequency
- Plan registration timing
Purpose & Usage
Purpose
Track when registration costs were last adjusted.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
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 LastAdjustmentBlock storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("LastAdjustmentBlock")](
key1
);
console.log("LastAdjustmentBlock:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393