/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.
Endpoint
GET /pallets/staking/progressQuery Parameters
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'const response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/pallets/staking/progress');
const data = await response.json();
console.log(data);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
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?