Queries active validators on the network, which returns details and the validation state on the blockchain.
Supported on NEAR (mainnet) only.
Parameters
block hash- string - The hash of the blockblock number- int - The block numbernull- Using [null] will query for the latest block
Note: For block hash and block number, you will need to query from the last block in an epoch.
Returns
current_proposals- The information about the proposalsaccount_id- The identifier for the accountpublic_key- The public key of the signerstake- The amount of tokens staked on the networkvalidator_stake_struct_version- The validator stake struct version
current_validators- The information about current current_validatoraccount_id- The identifier for the accountpublic_key- The public key of the signeris_slashed- It states whether the validator is slashed or notstake- The amount of tokens staked on the networkshards- The data grouped togethernum_expected_blocks- The number of expected blocksnum_expected_chunks- The number of expected chunksnum_produced_blocks- The number of blocks producednum_produced_chunks- The number of chunks produced
next_validators- The information about current next_validatoraccount_id- The identifier for the accountpublic_key- The public key of the signerstake- The amount of tokens staked on the networkstakestake - The data grouped together
current_fishermen- The information about the current fishermen, the network participants that open disputesaccount_id- The identifier for the accountpublic_key- The public key of the signerstake- The amount of tokens staked on the network
next_fishermen- The information about the next fishermen, the network participants that open disputesaccount_id- The identifier for the accountpublic_key- The public key of the signerstake- The amount of tokens staked on the network
prev_epoch_kickout- The epoch number at which the validator gets kicked outaccount_id- The identifier for the accountreason- The reasonNotEnoughChunks- The data about the expected and produced chunksexpected- The expected chunksproduced- The produced chunks
epoch_start_height- The height at which the epoch startsepoch_height- The epoch height
API Endpoint
The format of a Near API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/near/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/near/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/near/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"method": "validators", "params": [null],"id":1,"jsonrpc":"2.0"}'
Result
