getClusterNodes

Returns information about all the nodes participating in the cluster.

📘

Supported on Solana (mainnet) only.

Parameters

  • none

Returns

The result field will be an array of JSON objects, each with the following sub fields:

  • pubkey: <string> - Node public key, as base-58 encoded string
  • gossip: <string|null> - Gossip network address for the node
  • tpu: <string|null> - TPU network address for the node
  • rpc: <string|null> - JSON RPC network address for the node, or null if the JSON RPC service is not enabled
  • version: <string|null> - The software version of the node, or null if the version information is not available
  • featureSet: <u32|null > - The unique identifier of the node's feature set
  • shredVersion: <u16|null> - The shred version the node has been configured to use

API Endpoint

The format of an Solana API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/solana/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/solana/

Example

Request

curl https://open-platform.nodereal.io/{{apiKey}}/solana/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0", "id":1, "method":"getClusterNodes"}'

Result

{
  "jsonrpc": "2.0",
  "result": [
    {
      "gossip": "10.239.6.48:8001",
      "pubkey": "9QzsJf7LPLj8GkXbYT3LFDKqsj2hHG7TA3xinJHu8epQ",
      "rpc": "10.239.6.48:8899",
      "tpu": "10.239.6.48:8856",
      "version": "1.0.0 c375ce1f"
    }
  ],
  "id": 1
}