For the complete documentation index, see llms.txt. This page is also available as Markdown.

/pallets/staking/progress - Polkadot

Example code for the /pallets/staking/progress REST method. Complete guide on how to use /pallets/staking/progress REST in GetBlock Web3 documentation.

This endpoint returns the current staking system status: the active era, session progress, and the timing of the next era and unapplied slashes.

On GetBlock's unified endpoint, Asset Hub is the default network. To call this endpoint against the Relaychain, add an /rc prefix to the path (for example, /rc/pallets/staking/progress).

Endpoint

GET /pallets/staking/progress

Query Parameters

Parameter
Type
Required
Description

at

string

No

Block height or hash to query at

Request

curl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/pallets/staking/progress'
example.js
const response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/pallets/staking/progress');
const data = await response.json();
console.log(data);
example.py
import requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/pallets/staking/progress')
print(response.json())

Response

{
  "at": {
    "hash": "0x255bc00927df8d33d561792635cbc6bde480a0a505eef5ff28630ece3fc15b32",
    "height": "6754362"
  },
  "idealValidatorCount": "600",
  "activeEra": "1400",
  "forceEra": "NotForcing",
  "nextActiveEraEstimate": "6760000",
  "electionStatus": {
    "status": {
      "close": null
    }
  },
  "unappliedSlashes": []
}

Response Fields

Field
Type
Description

activeEra

string

Current active staking era

idealValidatorCount

string

Target number of validators

nextActiveEraEstimate

string

Estimated block of the next era

unappliedSlashes

array

Slashes not yet applied

Use Cases

  • Staking Dashboards: Show era progress and validator count

  • Reward Timing: Estimate when the next era starts

  • Validator Tools: Monitor the election status

  • Alerting: Watch for unapplied slashes

Last updated

Was this helpful?