/eth/v1/node/peer_count

Get peer count.

Retrieves number of known peers.

Example Request and Result for /v1/node/peer_count

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/node/peer_count endpoint. Additionally, we present the resulting response containing information about the peer count.

Parameters

  • none

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Get peer count.

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/node/peer_count

{
  "data": {
    "disconnected": "12",
    "connecting": "34",
    "connected": "56",
    "disconnecting": "5"
  }
}

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/node/peer_count' \
  -H 'accept: application/json'

Last updated