AllExtrinsicsLen
Storage Plain v101 → currentTotal length in bytes of all extrinsics in current block .
Explore chainQueried by: validatorsdevelopers
The Big Picture
Blocks have size limits. This tracks byte usage during building.
Use Cases
- Monitor block size
From Chain Metadata
Total length (in bytes) for all extrinsics put together, for the current block.
Purpose & Usage
Purpose
Track block size during execution.
Common Query Patterns
- Query during block execution
Stored Value
value (u32)
Default Value
None (absent keys return no value)
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
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 AllExtrinsicsLen storage (no keys - plain value)
const result = await api.query.System.AllExtrinsicsLen.getValue();
console.log("AllExtrinsicsLen:", result);On-Chain Activity
Write Frequency
●●●●●● Ultra-High >10M est. writes
More than 10M writes
#46 most written storage item
Write Source Calls + Hooks
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Runtime Info
- Pallet
- System
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v490