Skip to main content

Parameters

This method does not take any parameters.

Response

array
Array of objects containing node information:

Code Examples

Basic Request

Using web3.js

Notes

  1. Some fields may be null if the information is not available
  2. Node information is obtained through the gossip network
  3. The list includes all known nodes, whether they are currently active or not
  4. Network addresses are in standard socket format (IP:port)

Best Practices

  1. Cache results to reduce RPC load (refresh every few minutes)
  2. Use version information to detect network upgrades
  3. Filter null values when processing network addresses
  4. Consider node versions when selecting RPC endpoints
  5. Use TPU addresses for transaction forwarding optimization

Common Errors

Use Cases

  1. Load Balancing
    • Discover available RPC endpoints
    • Distribute client connections
  2. Network Health Monitoring
    • Track node versions
    • Monitor network distribution
    • Identify network partitions
  3. Transaction Optimization
    • Find closest TPU addresses
    • Implement leader-aware transaction forwarding
  4. Version Management
    • Track network upgrades
    • Ensure client compatibility
    • Plan maintenance windows