PendingExtrinsics
Storage Map v401 → current NewStorage map for encrypted extrinsics to be executed in on_initialize.
Explore chainFrom Chain Metadata
Storage map for encrypted extrinsics to be executed in on_initialize. Uses u32 index for O(1) insertion and removal. Count is maintained automatically.
Purpose & Usage
Purpose
Uses u32 index for O(1) insertion and removal. Count is maintained automatically.
Common Query Patterns
- Query by key
- Iterate all entries
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u32 | key1 (u32) |
Stored Value
value (PendingExtrinsic)
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 PendingExtrinsics storage
const key1 = 0;
const result = await api.query
[stringCamelCase("MevShield")]
[stringCamelCase("PendingExtrinsics")](
key1
);
console.log("PendingExtrinsics:", result.toHuman());Runtime Info
View Source- Pallet
- MevShield
- Storage Kind
- Map
- First Version
- v401
- Current Version
- v401