NEAR Protocol RPC: Get maintenance windows (1.0.0)

Returns the future windows for maintenance in current epoch for the specified account

Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Get maintenance windows

Request

Returns the future windows for maintenance in current epoch for the specified account

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"maintenance_windows"
paramsobjectrequired
params.​account_idstringrequired

NEAR account ID

curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "maintenance_windows",
    "params": {
      "account_id": "example.near"
    }
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultArray of objects
errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": [ {} ], "error": { "code": 0, "message": "string", "data": {} } }