AllExtrinsicsLen

Storage Plain v101 → current

Total length in bytes of all extrinsics in current block .

Explore chain
Queried 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 { 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 AllExtrinsicsLen storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("System")]
  [stringCamelCase("AllExtrinsicsLen")]();
console.log("AllExtrinsicsLen:", result.toHuman());

Runtime Info

Pallet
System
Storage Kind
Plain
First Version
v101
Current Version
v393