Solana
Solana
Solana
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
getClusterNodes is a Solana JSON-RPC method that returns information about every node currently participating in the cluster — the validators and RPC nodes that secure the SOL ledger under Proof-of-History and Proof-of-Stake. For each node you get its identity pubkey along with the network addresses it advertises through gossip: the gossip, tpu, and rpc ports, plus the version, featureSet, and shredVersion it is running. Send the request as a JSON-RPC 2.0 POST with an empty positional params array to https://solana.therpc.io/YOUR_API_KEY.
rpc and tpu endpoints advertised across the cluster, for example to send a transaction straight to a leader's TPU port instead of waiting on a generic RPC.solana-core version and featureSet each node runs network-wide, so you can spot validators lagging an upgrade.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| array | Array of { pubkey, gossip, tpu, rpc, version, featureSet, shredVersion }. |
| Código | Mensaje | Causa |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
rpc and tpu fields can be null for nodes that do not expose those ports publicly — a validator with RPC disabled will report rpc: null, so guard against it before dialing the address.