Indexer: Validator missed blocks percentage (v1)
getValidatorMissedPercentageCompute missing block ratio for a validator between two blocks. Supply start block and optional end block to receive a percentage of missed blocks.
Instructions
Calculate percentage of missed blocks for a validator in a block range via /api/v1/validators/blocks/missed/{validator}. Provide startBlock (inclusive) and endBlock (inclusive). Returns a percentage (0..100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endBlock | No | Optional end block, inclusive; defaults to best/latest | |
| validator | Yes | Validator address (path parameter) | |
| startBlock | Yes | Start block, inclusive |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Percentage of missed blocks in the given range (0..100, not a decimal) | |
| error | No | ||
| network | Yes |