MaxExtrinsicWeight

Storage Plain v401 → current New

Configurable maximum weight for a single extrinsic dispatched during on_initialize.

Explore chain

From Chain Metadata

Configurable maximum weight for a single extrinsic dispatched during on_initialize. Extrinsics exceeding this limit are removed from the queue.

Purpose & Usage

Purpose

Extrinsics exceeding this limit are removed from the queue.

Common Query Patterns

  • Query by key
  • Iterate all entries

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

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

Runtime Info

View Source
Pallet
MevShield
Storage Kind
Plain
First Version
v401
Current Version
v401