Lists the Prevalidator workers and their status.
const response = await fetch('https://xtz.nownodes.io/workers/prevalidators', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "chain_id": "text", "status": { "phase": "launching", "since": "text" }, "information": { "instances": 0, "status": { "phase": "launching", "since": "text" }, "queue_length": 0 }, "pipelines": 0 } ]
Introspect the state of prevalidator workers.
A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
const response = await fetch('https://xtz.nownodes.io/workers/prevalidators/{chain_id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "status": { "phase": "launching", "since": "text" }, "pending_requests": [ { "pushed": "text", "request": { "request": "flush", "block": "text", "event": "branch" } } ], "current_request": { "pushed": "text", "treated": "text", "request": { "request": "flush", "block": "text", "event": "branch" } } }