PendingChange

Storage Plain v101 → current

Scheduled authority set change waiting to be applied.

Explore chain
Queried by: validatorsdevelopers

The Big Picture

When the validator set is about to change (at session boundaries or forced), this storage contains the pending change details: new authorities, when it activates, and the delay. Usually None between session changes.

Use Cases

  • Check if an authority set change is scheduled
  • Prepare validators for upcoming set transitions
  • Monitor forced change announcements

From Chain Metadata

Pending change: (signaled at, scheduled change).

Purpose & Usage

Purpose

Holds details of upcoming GRANDPA validator set transitions.

Common Query Patterns

  • Single value query (None if no pending change)

Stored Value

value (StoredPendingChange)

Relationships

Modified By

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

Runtime Info

Pallet
Grandpa
Storage Kind
Plain
First Version
v101
Current Version
v393