LastRuntimeUpgrade
Storage Plain v101 → currentInformation about the last runtime upgrade.
Explore chainQueried by: validatorsdevelopersanalytics
The Big Picture
Records when and what the last runtime upgrade was.
Use Cases
- Check current runtime version
- Verify upgrade history
From Chain Metadata
Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
Purpose & Usage
Purpose
Track spec version and name of current runtime.
Common Query Patterns
- Single value query
Stored Value
value (LastRuntimeUpgradeInfo)
Relationships
Related Events
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 LastRuntimeUpgrade storage (no keys - plain value)
const result = await api.query
[stringCamelCase("System")]
[stringCamelCase("LastRuntimeUpgrade")]();
console.log("LastRuntimeUpgrade:", result.toHuman());Runtime Info
- Pallet
- System
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v393