Maintenance Windows
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
The RPC API enables you to query future maintenance windows for a specific validator in current epoch
Maintenance windows
The maintenance windows for a specific validator are future block height ranges in current epoch, in which the validator does not need produce block or chunk If the provided account is not a validator, then it will return the range from now to the end of the epoch.
method:
EXPERIMENTAL_maintenance_windows
params:
account_id
example:
What Could Go Wrong??
When API request fails, RPC server returns a structured error response with a limited number of well-defined error variants, so client code can exhaustively handle all the possible error cases. Our JSON-RPC errors follow verror convention for structuring the error response:
Here is the exhaustive list of the error variants that can be returned by maintenance_windows
method:
ERROR_TYPE
error.name
ERROR_CAUSE
error.cause.name
Reason
Solution
INTERNAL_ERROR
INTERNAL_ERROR
Something went wrong with the node itself or overloaded
Try again later
Send a request to a different node
Check
error.cause.info
for more details