Skip to Content
APIStatisticsGet Daily Average Block Size

Get Daily Average Block Size

1. Overview & Typical Use

Returns the average block size for each day, sorted in ascending chronological order.

  • Typical use: analyze block size change trends, display on-chain data growth.
  • When not to use: to view cumulative block size use “Get Total Blockchain Size”.

2. Endpoint & Authentication

GET /api/overview/dailyavgblockSize

For Base URL and authentication, see Common Network & Authentication.

3. Request

ParameterTypeRequiredDefaultDescription
daysintegerNo15Number of days to query

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
statusstringRequiredStatus identifier (e.g. "1" means normal)
codeintegerRequiredBusiness status code
messagestringRequiredResult message
successbooleanRequiredWhether successful
lastUpdateSecondsintegerRequiredData last update timeUnix timestamp (seconds)
dataarrayRequiredDaily average block size list (see below)

data[] element

FieldTypeRequiredDescriptionUnit/Precision
dateintegerRequiredStatistics datemillisecond timestamp
dateDayStrstringRequiredStatistics date stringyyyy-MM-dd
avgBlockSizeintegerRequiredAverage block size on this daybytes

5. Errors

For HTTP status codes, see Common Errors. Key points for this endpoint:

  • Empty result is not an error: returns 200 + data: [] when no data matches.
Last updated on: