Is bootstrapped

The bootstrap status of a chain

GEThttps://xtz.nownodes.io/chains/{chain_id}/is_bootstrapped
Path parameters
chain_id*string

A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.

Response
Body
bootstrapped*boolean
sync_state*enum

If 'unsynced', the node is not currently synchronized with of its peers (it is probably still bootstrapping and its head is lagging behind the chain's). If 'synced', the node considers itself synchronized with its peers and the current head timestamp is recent. If 'stuck', the node considers itself synchronized with its peers but the chain seems to be halted from its viewpoint.

stucksyncedunsynced
Request
const response = await fetch('https://xtz.nownodes.io/chains/{chain_id}/is_bootstrapped', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "bootstrapped": false,
  "sync_state": "stuck"
}