Metodo RPC getClusterNodes

Restituisce informazioni su tutti i nodi che partecipano al cluster

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getClusterNodes"
> }
> '

params

None

result

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

Il campo result sarà un array di oggetti JSON, ciascuno con i seguenti sotto-campi:

Is this page helpful?