EXPERIMENTAL_maintenance_windows - NEAR Protocol

Returns the upcoming maintenance windows (block-height ranges) for a validator account — the periods in the current epoch when it is neither producing nor validating and can safely restart.

Method

EXPERIMENTAL_maintenance_windows

Parameters

The params object carries:

ParameterExampleDescription
account_id"figment.poolv1.near"—

Example

bashexport NEAR_RPC=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl -X POST "${NEAR_RPC}" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": "getblock.io", "method": "EXPERIMENTAL_maintenance_windows", "params": {"account_id": "figment.poolv1.near"}}'

Response

json[
    [
        152000100,
        152000130
    ],
    [
        152000400,
        152000455
    ]
]

Response Fields

FieldTypeDescription
(array)arrayA list of [start_height, end_height] windows during which the validator is idle

Use Cases

  • Validator ops: Schedule node restarts during idle windows
  • Automation: Drive maintenance tooling for a staking pool

Error Handling

ErrorMessageDescription
-32700 / Parse errorParse errorThe JSON request was malformed
-32601 / Method not foundMethod not foundThe method is unknown or disabled on this node version
HANDLER_ERRORRequested data not foundThe account, block, chunk, or transaction does not exist or is garbage-collected (use an archival node)
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect