get Block Production
Returns per-validator block production stats (slots led vs. blocks actually produced) for a slot range.
getBlockProduction reports, per validator identity, how many slots they were assigned as leader and how many of those actually produced a block, over a given range (defaulting to the current epoch so far). The difference between the two numbers is skipped slots.
Parameters
params is a JSON array, with values in this order: config.
Optional configuration.
Show propertiesProperties
Bank state to compute production stats against.
finalizedconfirmedprocessedRestrict the result to a single validator identity, base-58 encoded.
Slot range to report on. Defaults to the current epoch, from its first slot through the current slot.
Show propertiesProperties
First slot of the range, inclusive.
Last slot of the range, inclusive. Defaults to the current slot if omitted.
Result
Per-identity production counts for the range, wrapped with context.
Show propertiesProperties
Show propertiesProperties
Show propertiesProperties
A dynamic map keyed by validator identity (base-58, not enumerable ahead of time), where each value is a 2-element [leaderSlots, blocksProduced] array of integers.
Show propertiesProperties
Notes
- Calling this with no
rangescans the whole current epoch (432,000 slots) across every validator.rangenarrows the scan to a slot window, andidentitynarrows it further to one validator. [leaderSlots, blocksProduced]equal (as in the example) means a perfect no-skip record for that window;blocksProducedlower thanleaderSlotsmeans skipped slots.