Get TRON Burn / Stake Revenue Statistics
1. Overview & Typical Use
Returns detailed statistics for a selected revenue type (burn or stake), including energy/bandwidth breakdowns, period summaries, revenue shares (Rate), and changes relative to baseline periods (Ratio).
- Typical use: compare burn revenue vs. stake revenue trends, analyze the composition of each revenue source.
- When not to use: for a total revenue overview use “Get TRON Protocol Total Revenue”.
2. Endpoint & Authentication
GET /api/consumption/statistic
For Base URL and authentication, see Common Network & Authentication.
3. Request
Fields
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
size | integer | No | 2000 | Maximum number of latest daily records included in summaries, up to 2000; applied before timeType aggregation |
start | integer | No | — | Start time, millisecond timestamp |
end | integer | No | — | End time, millisecond timestamp |
timeType | integer | No | 0 | Aggregation of data[]: 0 day, 1 month, 2 quarter, 3 year; does not change top-level comparison periods |
type | string | No | — | Revenue type: burn (burn revenue) or stake (stake revenue) |
4. Response
Fields
Top-level
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
code | integer | Required | Status code; 200 indicates success | — |
message | string | Required | Request status description; "request ok" on success | — |
status | string | Required | Status identifier; "1" on success | — |
total | integer | Required | Number of items returned in data[] | — |
lastUpdateSeconds | integer | Required | Data last updated time | Second timestamp |
data | array | Required | Revenue data list; see below | — |
totalIncomeYester | number | Required | Total revenue for the selected type for the current Yester period; see periods below | TRX |
totalIncomeMonth | number | Required | Total revenue for the selected type for the current Month period; see periods below | TRX |
totalIncome3Month | number | Required | Total revenue for the selected type for the current 3Month period; see periods below | TRX |
totalIncomeYear | number | Required | Total revenue for the selected type for the current Year period; see periods below | TRX |
totalIncomeYesterRatio | number | Required | Change in totalIncomeYester relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalIncomeMonthRatio | number | Required | Change in totalIncomeMonth relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalIncome3MonthRatio | number | Required | Change in totalIncome3Month relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalIncomeYearRatio | number | Required | Change in totalIncomeYear relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalNetIncomeYester | number | Required | Bandwidth revenue for the current Yester period; see periods below | TRX |
totalNetIncomeMonth | number | Required | Bandwidth revenue for the current Month period; see periods below | TRX |
totalNetIncome3Month | number | Required | Bandwidth revenue for the current 3Month period; see periods below | TRX |
totalNetIncomeYear | number | Required | Bandwidth revenue for the current Year period; see periods below | TRX |
totalNetIncomeYesterRate | number | Required | Bandwidth revenue share for the same period: totalNetIncomeYester / totalIncomeYester | 0–1 |
totalNetIncomeYesterRatio | number | Required | Change in totalNetIncomeYester relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalNetIncomeMonthRate | number | Required | Bandwidth revenue share for the same period: totalNetIncomeMonth / totalIncomeMonth | 0–1 |
totalNetIncomeMonthRatio | number | Required | Change in totalNetIncomeMonth relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalNetIncome3MonthRate | number | Required | Bandwidth revenue share for the same period: totalNetIncome3Month / totalIncome3Month | 0–1 |
totalNetIncome3MonthRatio | number | Required | Change in totalNetIncome3Month relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalNetIncomeYearRate | number | Required | Bandwidth revenue share for the same period: totalNetIncomeYear / totalIncomeYear | 0–1 |
totalNetIncomeYearRatio | number | Required | Change in totalNetIncomeYear relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalEnergyIncomeYester | number | Required | Energy revenue for the current Yester period; see periods below | TRX |
totalEnergyIncomeMonth | number | Required | Energy revenue for the current Month period; see periods below | TRX |
totalEnergyIncome3Month | number | Required | Energy revenue for the current 3Month period; see periods below | TRX |
totalEnergyIncomeYear | number | Required | Energy revenue for the current Year period; see periods below | TRX |
totalEnergyIncomeYesterRate | number | Required | Energy revenue share for the same period: totalEnergyIncomeYester / totalIncomeYester | 0–1 |
totalEnergyIncomeYesterRatio | number | Required | Change in totalEnergyIncomeYester relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalEnergyIncomeMonthRate | number | Required | Energy revenue share for the same period: totalEnergyIncomeMonth / totalIncomeMonth | 0–1 |
totalEnergyIncomeMonthRatio | number | Required | Change in totalEnergyIncomeMonth relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalEnergyIncome3MonthRate | number | Required | Energy revenue share for the same period: totalEnergyIncome3Month / totalIncome3Month | 0–1 |
totalEnergyIncome3MonthRatio | number | Required | Change in totalEnergyIncome3Month relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
totalEnergyIncomeYearRate | number | Required | Energy revenue share for the same period: totalEnergyIncomeYear / totalIncomeYear | 0–1 |
totalEnergyIncomeYearRatio | number | Required | Change in totalEnergyIncomeYear relative to the same revenue metric in the baseline period; see formula and periods below | Decimal ratio |
Rate, Ratio, and comparison periods
With type=burn, top-level summaries use netBurnIncome and energyBurnIncome; with type=stake, they use netStakeIncome and energyStakeIncome. Total revenue for the selected type is bandwidth plus energy revenue for the same period. data[] still includes both revenue types.
Rate= component revenue / total revenue of the selected type for the same period. Returns0when that total is zero or negative.Ratio= (current-period revenue − baseline-period revenue) / baseline-period revenue. Total, bandwidth, and energy revenue each use their own current and baseline values. Returns0when the baseline is zero, negative, or absent, so0alone does not establish that revenue was unchanged.- Both are decimal ratios rounded to 6 decimal places using half-up rounding. Multiply by
100to display percentages.Rateis a0–1share;Ratiocan be negative or greater than1.
Let D be the statistics date of the effective end, and T = D + 1 day. If end is later than the latest data-ready time, the endpoint caps it at that time. In the table, day is a daily record’s date; interval endpoints are excluded.
| Field suffix | Current period | Baseline period |
|---|---|---|
Yester | Date D | D − 1 day |
Month | T − 30 days < day < T | T − 60 days < day < T − 30 days |
3Month | T − 90 days < day < T | T − 180 days < day < T − 90 days |
Year | T − 365 days < day < T | T − 730 days < day < T − 365 days |
If the selected type’s total revenue on D is zero, negative, or absent, all Yester fields use D − 1 day, with D − 2 days as the baseline. Month, 3Month, and Year are rolling intervals. With complete data, the current boundaries include 29, 89, and 364 daily records respectively; they are not calendar months, quarters, or years.
All top-level summaries use only the latest size daily records retained within start through the effective end, including both dates. The endpoint does not fetch additional baseline data. Incomplete windows sum only the available records; absent records contribute 0. timeType changes the aggregation of data[] only, not the daily records or comparison periods used by top-level summaries.
data[] elements
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
day | string | Required | Statistics date | YYYY-MM-DD |
trxPriceInUsd | number | Required | TRX USD price for the day | USD |
totalIncome | number | Required | Total revenue | TRX |
burnIncome | number | Required | Total burn revenue | TRX |
stakeIncome | number | Required | Total stake revenue | TRX |
energyIncome | number | Required | Total energy revenue | TRX |
netIncome | number | Required | Total bandwidth revenue | TRX |
energyBurnIncome | number | Required | Energy burn revenue | TRX |
energyStakeIncome | number | Required | Energy stake revenue | TRX |
netBurnIncome | number | Required | Bandwidth burn revenue | TRX |
netStakeIncome | number | Required | Bandwidth stake revenue | TRX |
burnIncomePercent | number | Optional | Burn income as a share of total revenue for the queried type; code-derived from Greason v5 scan (reproducing sample pending) | — |
stakeIncomePercent | number | Optional | Stake income as a share of total revenue for the queried type; code-derived from Greason v5 scan (reproducing sample pending) | — |
energyBurnIncomePercent | number | Optional | Energy burn income share; code-derived from Greason v5 scan (reproducing sample pending) | — |
energyStakeIncomePercent | number | Optional | Energy stake income share; code-derived from Greason v5 scan (reproducing sample pending) | — |
netBurnIncomePercent | number | Optional | Bandwidth burn income share; code-derived from Greason v5 scan (reproducing sample pending) | — |
netStakeIncomePercent | number | Optional | Bandwidth stake income share; code-derived from Greason v5 scan (reproducing sample pending) | — |
5. Errors
For HTTP status codes, see Common Errors. Notes for this endpoint:
- When
sizeexceeds 2000, it is silently truncated to 2000. - Empty result is not an error: no matched records returns
200+data: [], which is a normal response.