Skip to Content
API统计数据获取合约能量消耗数据

获取合约能量消耗数据

1. 概述与典型用途

返回合约的能量统计数据,包括能量消耗总量、来源分布及合约排名。

  • 典型用途:分析各合约能量消耗情况、查看能量消耗排行榜。
  • 何时不要用:查看按天汇总的全网能量消耗趋势用「获取能量消耗分布」。

2. 接口与鉴权

GET /api/energydailystatistic

Base URL 与鉴权见 公共网络与鉴权说明。

3. 请求

参数类型必填默认说明
dayinteger否最近统计周期当前时间戳,精确到毫秒
limitinteger否10返回数量,最大 50

4. 响应

顶层

字段类型是否必返说明单位/精度
totalTriggerinteger必返当日触发交易总数—
totalCallerAmountinteger必返当日调用者总数—
totalEnergyinteger必返当日能量消耗总量—
totalinteger必返命中合约总数—
lastUpdateSecondsinteger必返数据更新时间秒级 Unix 时间戳
dataarray必返合约能量消耗列表,见下—

data[] 元素

字段类型是否必返说明单位/精度
contract_addressstring必返合约地址—
total_energyinteger必返该合约能量消耗总量—
energyinteger必返质押获取的能量消耗—
contract_suppliedinteger必返合约自身提供的能量消耗—
trxinteger必返燃烧 TRX 支付的能量消耗—
namestring必返合约名称—
total_energy_percentnumber必返该合约能量占比—
tag1string可选合约标签—
tag1Urlstring可选合约标签对应链接—
blueTagUrlstring可选合约官网链接—
isTokenboolean必返是否为代币合约—
publicTagDescstring可选公开标签描述—
riskboolean必返风险标记—
vipboolean必返是否为 VIP 合约—

5. 错误

HTTP 状态码见 公共错误说明。本接口要点:

  • 空结果 ≠ 错误:无命中返回 200 + data: [],属于正常响应。
最后更新于: