Authorities

Storage Plain v151 → current

List of current GRANDPA authorities (public keys with voting weights ).

Explore chain
Queried by: validatorsdevelopersanalytics

The Big Picture

This is the definitive list of who can vote on finality right now. Each entry is a public key (ed25519) and a weight. Votes are weighted - higher weight means more influence in finalization. Updated at session changes via NewAuthorities event.

Use Cases

  • Get the current finality voter set
  • Calculate total voting weight
  • Verify if a specific validator is in the authority set
  • Build validator monitoring tools

From Chain Metadata

The current list of authorities.

Purpose & Usage

Purpose

The active set of validators who vote on block finality.

Common Query Patterns

  • Single value query returns Vec of (AuthorityId, Weight)

Stored Value

value (WeakBoundedVec)

Default Value

0x00 (raw SCALE bytes)

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query Authorities storage (no keys - plain value)
const result = await api.query.Grandpa.Authorities.getValue();
console.log("Authorities:", result);

Runtime Info

Pallet
Grandpa
Storage Kind
Plain
First Version
v151
Current Version
v472