validators

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 block
  • block number - int - The block number
  • null- 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 proposals
    • account_id- The identifier for the account
    • public_key- The public key of the signer
    • stake- The amount of tokens staked on the network
    • validator_stake_struct_version- The validator stake struct version
  • current_validators- The information about current current_validator
    • account_id- The identifier for the account
    • public_key- The public key of the signer
    • is_slashed- It states whether the validator is slashed or not
    • stake- The amount of tokens staked on the network
    • shards- The data grouped together
    • num_expected_blocks- The number of expected blocks
    • num_expected_chunks- The number of expected chunks
    • num_produced_blocks- The number of blocks produced
    • num_produced_chunks- The number of chunks produced
  • next_validators- The information about current next_validator
    • account_id- The identifier for the account
    • public_key- The public key of the signer
    • stake- The amount of tokens staked on the network
    • stakestake - The data grouped together
  • current_fishermen- The information about the current fishermen, the network participants that open disputes
    • account_id- The identifier for the account
    • public_key- The public key of the signer
    • stake- The amount of tokens staked on the network
  • next_fishermen- The information about the next fishermen, the network participants that open disputes
    • account_id- The identifier for the account
    • public_key- The public key of the signer
    • stake- The amount of tokens staked on the network
  • prev_epoch_kickout- The epoch number at which the validator gets kicked out
    • account_id- The identifier for the account
    • reason- The reason
      • NotEnoughChunks- The data about the expected and produced chunks
        • expected- The expected chunks
        • produced- The produced chunks
  • epoch_start_height- The height at which the epoch starts
  • epoch_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