Méthode RPC getClusterNodes
Renvoie des informations sur tous les nœuds participant au cluster
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getClusterNodes"> }> '
params
Noneresult
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
Le champ result sera un tableau d'objets JSON, chacun avec les sous-champs suivants :
Is this page helpful?