Learn getClusterNodes use cases, code examples, request parameters, response structure, and tips.
getClusterNodes
RPC method returns a list of all known nodes currently participating in the Solana cluster. This information can be useful for network analysis, discovering alternative RPC endpoints, or understanding the current topology of the network from the perspective of the queried node.
result
field of the JSON-RPC response will be an array of objects. Each object represents a node and contains the following fields:
pubkey
(string): The public key (identity) of the node, base58 encoded.gossip
(string | null): The IP address and port for the node’s gossip service. Can be null
if not available.tpu
(string | null): The IP address and port for the node’s Transaction Processing Unit (TPU). This is used for submitting transactions directly. Can be null
.rpc
(string | null): The IP address and port for the node’s JSON-RPC service. Can be null
if the RPC service is not enabled or advertised by this node.version
(string | null): The software version of the node. Can be null
if version information is not available.featureSet
(u32 | null): The unique identifier of the node’s feature set. Can be null
.shredVersion
(u16 | null): The version of the data structure used by this node to store and transmit blocks (shreds). Can be null
.rpc
field being non-null indicates an advertised RPC endpoint, but it doesn’t guarantee accessibility or performance.getClusterNodes
RPC method for discovering and understanding the nodes within a Solana cluster.