UpgradedToU32RefCount
Storage Plain v101 → v411Migration flag for u32 reference count upgrade.
Explore chainQueried by: validatorsdevelopers
The Big Picture
Internal migration tracking.
Use Cases
- Migration tracking
From Chain Metadata
True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
Purpose & Usage
Purpose
Track whether a specific migration has run.
Common Query Patterns
- Single value query
Stored Value
value (bool)
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 UpgradedToU32RefCount storage (no keys - plain value)
const result = await api.query.System.UpgradedToU32RefCount.getValue();
console.log("UpgradedToU32RefCount:", result);Version History
v101 block 1 Added
v120 block 315,568 Internal re-bind
v121 block 518,345 Internal re-bind
v123 block 720,235 Internal re-bind
v149 block 3,014,339 Internal re-bind
v151 block 3,157,274 Internal re-bind Current
Runtime Info
- Pallet
- System
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v411