signal21

Data API Documentation

This document describes the API endpoints available in the data routes module.

Base URL

All endpoints are prefixed with https://app.signal21.io/api/data

Endpoints

GET /api/data/stacking-rewards-btc

Returns the total stacking rewards in BTC.

Response:

{
  "reward": number
}

Example:

{
  "reward": 1234.567
}

GET /api/data/stackers

Returns the total number of stackers.

Response:

{
  "stackers": number
}

Example:

{
  "stackers": 15000
}

GET /api/data/cycle

Returns the current stacking cycle.

Response:

{
  "cycle": number
}

Example:

{
  "cycle": 42
}

GET /api/data/miners

Returns the total number of miners.

Response:

{
  "miners": number
}

Example:

{
  "miners": 221
}

Error Handling

All endpoints return JSON responses. In case of errors, appropriate HTTP status codes will be returned along with error details.

Caching

Data is served through a cached storage system to improve performance and reduce database load.