getClusterNodes RPC 方法
返回参与集群的所有节点的信息
$ 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
结果字段将是一个 JSON 对象数组,每个对象包含以下子字段:
Is this page helpful?