StatusFor
Storage Re-added Map v133 → v150, v151 → currentStatus of a preimage by hash (deprecated).
Explore chainQueried by: validatorsdevelopers
The Big Picture
Legacy status tracking for preimages.
Use Cases
- Check if preimage exists
From Chain Metadata
The request status of a given hash.
Purpose & Usage
Purpose
Track preimage availability.
Common Query Patterns
- Query by hash
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | H256 | key1 (H256) |
Stored Value
value (OldRequestStatus)
Relationships
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 StatusFor storage
const key1 = 0 as any /* H256 */;
const result = await api.query
[stringCamelCase("Preimage")]
[stringCamelCase("StatusFor")](
key1
);
console.log("StatusFor:", result.toHuman());Version History
v133 block 1,404,224 Added
v151 block 3,157,274 Re-added Current
Runtime Info
- Pallet
- Preimage
- Storage Kind
- Map
- First Version
- v133
- Current Version
- v393