POST
/
getClusterNodes
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getClusterNodes"
}'
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": [
    {
      "pubkey": "9QzsJf7LPLj8GkXbYT3LFDKqsj2hHG7TA3xinJHu8epQ",
      "gossip": "10.239.6.48:8001",
      "tpu": "10.239.6.48:8856",
      "rpc": "10.239.6.48:8899",
      "version": "1.0.0 c375ce1f",
      "featureSet": 123,
      "shredVersion": 123
    }
  ]
}

Authorizations

api-key
string
query
required

您的 Helius API 密钥。您可以在仪表板中免费获取一个。

Body

application/json

Response

200
application/json

成功检索集群节点信息。

The response is of type object.