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)
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);Runtime Info
- Pallet
- System
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v411