Granite Upgrade Activates in09d:00h:01m:37s
Validators

platform.getCurrentValidators

GetCurrentValidators returns the current validators. If a single nodeID is provided, full delegators information is also returned. Otherwise only delegators' number and total weight is returned.

POST
/ext/bc/P#platform.getCurrentValidators

JSON-RPC request

jsonrpcstring
methodstring
params

Method parameters

idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/P#platform.getCurrentValidators" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "platform.getCurrentValidators",    "params": {},    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": {
    "validators": [
      {}
    ]
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": {}
  },
  "id": 1
}

Is this guide helpful?