Skip to main content

Current Validators

validators request type

This endpoint allows you to get the current set of validators on the NEAR blockchain.

Network
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "validators",
  "params": [
    null
  ]
}

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
validators
params *array

Example:

itemsvaluenullable

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires current_validators, next_validators, current_fishermen, next_fishermen, current_proposals, prev_epoch_kickout, epoch_start_height, epoch_height

Information about this epoch validators and next epoch validators

current_fishermen *array

Fishermen for the current epoch

itemsobject

One of multiple possible types

current_proposals *array

Proposals in the current epoch

itemsobject

One of multiple possible types

current_validators *array

Validators for the current epoch

itemsobject

Describes information about the current epoch validator

epoch_height *integer

Epoch height

epoch_start_height *integer

Epoch start block height

next_fishermen *array

Fishermen for the next epoch

itemsobject

One of multiple possible types

next_validators *array

Validators for the next epoch

itemsobject
prev_epoch_kickout *array

Kickout in the previous epoch

itemsobject
errorobject
codeinteger
messagestring
dataobject