/pallets/staking/progress - Polkadot
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
httpGET /pallets/staking/progressQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| at | string | No | Block height or hash to query at |
Request
bashcurl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/pallets/staking/progress'example.js
javascriptconst 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
pythonimport requests
response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/pallets/staking/progress')
print(response.json())Response
json{
"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