Explorer

      

    Aggregated network statistics including active nodes, job count, and total staked.

    Returns high-level metrics for the CompressNode network, sourced from on-chain contract reads. Active node count comes from the NodeRegistry, and the job count is derived from the JobRegistry's next job ID. Responses are cached for 30 seconds with a 60-second stale-while-revalidate window.

    Endpoint

    GET/api/explorer/stats

    Response

    FieldTypeDescription
    totalNodesnumberNumber of currently active nodes.
    activeJobsnumberTotal number of jobs submitted to the network.
    totalStakedstringTotal $CNODE staked across all nodes (wei).

    Example Usage

    Response

    {
      "ok": true,
      "data": {
        "totalNodes": 127,
        "activeJobs": 4281,
        "totalStaked": "0"
      }
    }