NEAR Protocol RPC: Current Validators (1.0.0)

Retrieve information about the current validator set

Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Get current validators

Request

Retrieves the list of current validators and their details

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"validators"
paramsArray of null= 1 itemsrequired
Example: [null]
curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "validators",
    "params": [
      null
    ]
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject

Information about this epoch validators and next epoch validators

errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": { "current_fishermen": [], "current_proposals": [], "current_validators": [], "epoch_height": 0, "epoch_start_height": 0, "next_fishermen": [], "next_validators": [], "prev_epoch_kickout": [] }, "error": { "code": 0, "message": "string", "data": {} } }