status

Returns the current list of validators and the general status of a given node (sync status, nearcore node version, protocol version, etc).

📘

Supported on NEAR (mainnet) only.

Parameters

  • none

Returns

  • chain_id - The id of the chain
  • latest_protocol_version - he latest protocol version
  • node_key - The node key used for synchronisation
  • protocol_version - The protocol version
  • rpc_addr - The RPC address
  • sync_info - The information about the block synchronisation
    • earliest_block_hash - The hash of the earliest block
    • earliest_block_height - The height of the earliest block
    • earliest_block_time - The earliest block time
    • latest_block_hash - The hash of the latest block
    • latest_block_height - The height of the latest block
    • latest_block_time - The latest block time
    • latest_state_root - The latest state of the root of block
    • syncing - It states whether blocks are synced or not
  • uptime_sec - The uptime in seconds
  • validator_account_id - The account id of the validator
  • validators - The information about the validators
    • account_id - The identifier for the account
    • is_slashed - It states whether the validator is slashed or not
  • version - The information about the version i.e 57
    • build - The build number of the node
    • rustc_version - The rustc version number
    • version - The version number of the node

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 '{"jsonrpc": "2.0", "method": "status", "params": [],"id":1}'

Result