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!