ExecutionPhase

Storage Plain v101 → current

Current execution phase of block processing.

Explore chain
Queried by: validatorsdevelopers

The Big Picture

Blocks execute in phases: inherents, extrinsics, then finalize.

Use Cases

  • Runtime internal logic

From Chain Metadata

The execution phase of the block.

Purpose & Usage

Purpose

Track whether in inherent, extrinsic, or finalization phase.

Common Query Patterns

  • Query during execution

Stored Value

value (Phase)

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

Runtime Info

Pallet
System
Storage Kind
Plain
First Version
v101
Current Version
v393