status - NEAR Protocol

Returns the node's general status: sync status, nearcore and protocol version, latest block hash and height, and the current validator set.

Method

status

Parameters

This method takes an empty params array [].

Example

bashexport NEAR_RPC=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl -X POST "${NEAR_RPC}" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "id": "getblock.io", "method": "status", "params": []}'

Response

json{
    "version": {
        "version": "2.14.0",
        "build": "..."
    },
    "chain_id": "mainnet",
    "latest_protocol_version": 78,
    "sync_info": {
        "latest_block_hash": "9MzuZ...",
        "latest_block_height": 152000000,
        "latest_block_time": "2026-06-01T10:31:22Z",
        "syncing": false
    },
    "validators": [
        {
            "account_id": "figment.poolv1.near",
            "is_slashed": false
        }
    ]
}

Response Fields

FieldTypeDescription
chain_idstringNetwork identifier (mainnet or testnet)
latest_protocol_versionnumberActive protocol version
sync_infoobjectLatest block hash/height/time and syncing flag
validatorsarrayCurrent validator accounts

Use Cases

  • Health probe: Confirm the node is synced (sync_info.syncing = false)
  • Version check: Read nearcore and protocol version before using version-gated methods

Error Handling

ErrorMessageDescription
-32700 / Parse errorParse errorThe JSON request was malformed
-32601 / Method not foundMethod not foundThe method is unknown or disabled on this node version
HANDLER_ERRORRequested data not foundThe account, block, chunk, or transaction does not exist or is garbage-collected (use an archival node)
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect