Peers validators

Lists the peer validator workers and their status.

get

/workers/chain_validators/{chain_id}/peers_validators

Path parameters
chain_idstringrequired

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

Responses
curl -L \
  --url 'https://xtz.nownodes.io/workers/chain_validators/{chain_id}/peers_validators'
[
  {
    "peer_id": "text",
    "pipelines": {
      "fetched_headers": 1,
      "fetched_blocks": 1
    },
    "status": {
      "since": "text",
      "phase": "launching"
    },
    "information": {
      "instances": 1,
      "queue_length": 1,
      "status": {
        "since": "text",
        "phase": "launching"
      }
    }
  }
]

Introspect the state of a peer validator worker.

get

/workers/chain_validators/{chain_id}/peers_validators/{peer_id}

Path parameters
chain_idstringrequired

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

peer_idstringrequired

A cryptographic node identity (Base58Check-encoded)

Responses
curl -L \
  --url 'https://xtz.nownodes.io/workers/chain_validators/{chain_id}/peers_validators/{peer_id}'
{
  "status": {
    "since": "text",
    "phase": "launching"
  },
  "current_request": {
    "pushed": "text",
    "treated": "text",
    "request": {
      "block": "text",
      "request": "new_head"
    }
  },
  "pending_requests": [
    {
      "pushed": "text",
      "request": {
        "block": "text",
        "request": "new_head"
      }
    }
  ]
}