getClusterNodes | Solana

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.

Try the getClusterNodes RPC method yourself

Language
Click Try It! to start a request and see the response here!