AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

getClusterNodes RPC Method

The API credit value for this method is 2 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. none

Returns:

  1. featureSet - The unique identifier of the node's feature set
  2. gossip - The gossip network address for the node
  3. pubkey - The public key of the node encoded as base-58 string
  4. rpc - The IP address and port number of the node's JSON-RPC service. Null if the JSON RPC service is not enabled
  5. shredVersion - The version of the data structure used by this node to store and transmit blocks
  6. tpu - The TPU network address for the node
  7. version - The software version of the node. Null if the version information is not available

Code Examples:

const web3 = require("@solana/web3.js");
(async () => {
  const solana = new web3.Connection("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/");
  console.log(await solana.getClusterNodes());
})();
Ready to get started? Create a free account