cURL
curl --request POST \
--url https://api.example.com/maintenance_windows \
--header 'Content-Type: application/json' \
--data '
{
"method": "maintenance_windows",
"params": {
"account_id": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'maintenance_windows',
params: {account_id: '<string>'},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/maintenance_windows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/maintenance_windows"
payload = {
"method": "maintenance_windows",
"params": { "account_id": "<string>" },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": [
{
"end": 1,
"start": 1
}
],
"id": "<string>",
"jsonrpc": "<string>"
}Post maintenance windows
Returns the future windows for maintenance in current epoch for the specified account. In the maintenance windows, the node will not be block producer or chunk producer.
POST
/
maintenance_windows
cURL
curl --request POST \
--url https://api.example.com/maintenance_windows \
--header 'Content-Type: application/json' \
--data '
{
"method": "maintenance_windows",
"params": {
"account_id": "<string>"
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'maintenance_windows',
params: {account_id: '<string>'},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/maintenance_windows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/maintenance_windows"
payload = {
"method": "maintenance_windows",
"params": { "account_id": "<string>" },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": [
{
"end": 1,
"start": 1
}
],
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Available options:
maintenance_windows Show child attributes
Show child attributes
JSON-RPC request id. Auto-populated; can be any string.
JSON-RPC protocol version. Always 2.0.
Available options:
2.0 Was this page helpful?