ExtrinsicLifetime

Storage Plain v401 → current New

Configurable extrinsic lifetime (max block difference between submission and execution).

Explore chain

From Chain Metadata

Configurable extrinsic lifetime (max block difference between submission and execution). Defaults to 10 blocks if not explicitly set.

Purpose & Usage

Purpose

Defaults to 10 blocks if not explicitly set.

Common Query Patterns

  • Query by key
  • Iterate all entries

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

Runtime Info

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