POST
/
9de47db917d4f69168e3fed02217d15b
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getClusterNodes"
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    {
      "pubkey": "<string>",
      "gossip": "<string>",
      "tpu": "<string>",
      "rpc": "<string>",
      "version": "<string>"
    }
  ]
}

Solana getClusterNodes method

The Solana getClusterNodes method returns information about all the nodes participating in the cluster.

This method provides detailed information about each node, including its identity public key, gossip address, TPU address, version of Solana core software, and more. It is useful for getting a snapshot of the network’s current state.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

This method does not require any parameters.

Response

  • value — an array of objects, each representing a node in the cluster. Each object includes:
    • pubkey — the identity public key of the node.
    • gossip — the gossip address of the node.
    • tpu — the Transaction Processing Unit (TPU) address for the node.
    • rpc — the JSON RPC web service address for the node.
    • version — the version of Solana core software running on the node.

Use case

A practical use case for getClusterNodes is to get a snapshot of the network’s current state. This can be useful for network monitoring tools or other applications that need to display or make use of this information.

Body

application/json

Response

200 - application/json
Cluster nodes details

The response is of type object.