Skip to Content
APIStatisticsGet Contract Energy Consumption Data

Get Contract Energy Consumption Data

1. Overview & Typical Use

Returns energy statistics for contracts, including total energy consumption, source distribution, and contract rankings.

  • Typical use: analyzing per-contract energy consumption, viewing the energy consumption leaderboard.
  • When not to use: to view daily aggregated energy consumption trends across the network, use “Get Energy Consumption Distribution”.

2. Endpoint & Authentication

GET /api/energydailystatistic

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

3. Request

ParameterTypeRequiredDefaultDescription
dayintegerNoLatest statistics periodCurrent timestamp in milliseconds
limitintegerNo10Number of results, maximum 50

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
totalTriggerintegerRequiredTotal trigger transactions for the day
totalCallerAmountintegerRequiredTotal number of callers for the day
totalEnergyintegerRequiredTotal energy consumed for the day
totalintegerRequiredTotal number of matched contracts
lastUpdateSecondsintegerRequiredData update timeUnix timestamp in seconds
dataarrayRequiredContract energy consumption list, see below

data[] element

FieldTypeRequiredDescriptionUnit/Precision
contract_addressstringRequiredContract address
total_energyintegerRequiredTotal energy consumed by this contract
energyintegerRequiredEnergy from staking
contract_suppliedintegerRequiredEnergy supplied by the contract itself
trxintegerRequiredEnergy paid by burning TRX
namestringRequiredContract name
total_energy_percentnumberRequiredThis contract’s share of total energy
tag1stringOptionalContract tag
tag1UrlstringOptionalURL corresponding to the contract tag
blueTagUrlstringOptionalContract official website URL
isTokenbooleanRequiredWhether it is a token contract
publicTagDescstringOptionalPublic tag description
riskbooleanRequiredRisk flag
vipbooleanRequiredWhether it is a VIP contract

5. Errors

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

  • Empty result is not an error: returns 200 + data: [] as a normal response.
Last updated on: