State

Storage Plain v101 → current

Current state of the GRANDPA authority set (Live, Paused, or PendingPause/Resume).

Explore chain
Queried by: validatorsdevelopersanalytics

The Big Picture

GRANDPA can be paused for emergencies or upgrades. This storage tells you if finality is running normally (Live), stopped (Paused), or transitioning (PendingPause/PendingResume). Most of the time it's Live - other states indicate special circumstances.

Use Cases

  • Check if the network is actively finalizing blocks
  • Monitor for finality pauses during incidents
  • Build network health dashboards
  • Verify GRANDPA status before relying on finality

From Chain Metadata

State of the current authority set.

Purpose & Usage

Purpose

Tracks whether GRANDPA finality is actively running or suspended.

Common Query Patterns

  • Single value query for current finality state

Stored Value

value (StoredState)

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

Runtime Info

Pallet
Grandpa
Storage Kind
Plain
First Version
v101
Current Version
v393