Skip to Content
API交易与转账获取交易统计数据

获取交易统计数据

1. 概述与典型用途

查询全链交易类型分布与统计汇总,包含各类型交易数量、金额及占比。

  • 典型用途:交易类型分布图、全链概览统计面板、数据分析报告。
  • 何时不要用:查转账维度的统计用「获取转账统计分布数据」;查具体交易记录用「获取交易列表」。

2. 接口与鉴权

GET /api/transaction/statistics

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

3. 请求

无需任何参数。

4. 响应

顶层

字段类型是否必返说明单位/精度
codeinteger必返状态码
statusstring必返状态描述(如 "1"
messagestring必返请求结果消息(如 "request ok"
lastUpdateSecondsinteger必返数据更新时间时间戳 s(10 位,非毫秒)
updateTimeinteger必返数据更新时间(另一字段,与 lastUpdateSeconds 含义相似)毫秒时间戳 ms(13 位)
txCountinteger必返全链交易总数
txAmountnumber必返全链交易总金额(原值 sun,TRX = sun / 1e6)sun
lastDayTxCountinteger必返昨日交易数量
lastDayTxAmountnumber必返昨日交易金额(原值 sun,TRX = sun / 1e6)sun
trxTransferCountinteger必返TRX 转账次数
trxTransferAmountnumber必返TRX 转账总金额(原值 sun,TRX = sun / 1e6)sun
trxTransferProportionnumber必返TRX 转账占比百分比 %
trc10TransferCountinteger必返TRC10 转账次数
trc10TransferAmountnumber必返TRC10 转账总金额(原值 sun,TRX = sun / 1e6)sun
trc10TransferProportionnumber必返TRC10 转账占比百分比 %
trc20Countinteger必返TRC20 交易次数
trc20Amountnumber必返TRC20 交易总金额(原值 sun,TRX = sun / 1e6)sun
trc20Proportionnumber必返TRC20 占比百分比 %
trc721Countinteger必返TRC721 交易次数
trc1155Countinteger必返TRC1155 交易次数
triggerCountinteger必返合约调用次数
triggerAmountnumber必返合约调用总金额(原值 sun,TRX = sun / 1e6)sun
triggerProportionnumber必返合约调用占比百分比 %
freezeBalanceCountinteger必返冻结交易次数
freezeBalanceAmountnumber必返冻结交易总金额(原值 sun,TRX = sun / 1e6)sun
freezeBalanceProportionnumber必返冻结交易占比百分比 %
votesCountinteger必返投票次数
votesAmountnumber必返投票总金额(原值 sun,TRX = sun / 1e6)sun
votesProportionnumber必返投票占比百分比 %
othersCountinteger必返其他类型交易次数
othersAmountnumber必返其他类型交易金额(原值 sun,TRX = sun / 1e6)sun
othersProportionnumber必返其他类型占比百分比 %
triggerTop10array必返合约调用排行前 10,见子表
trc20Top10array必返TRC20 交易排行前 10,见子表

triggerTop10[] / trc20Top10[] 元素(两者结构相同)

字段类型是否必返说明单位/精度
addressstring必返合约地址
namestring必返合约/代币名称
symbolstring必返代币缩写
tokenTypestring必返代币类型(如 trc20
countinteger必返调用/交易次数
amountnumber必返交易金额(原值 sun,TRX = sun / 1e6)sun
proportionnumber必返占全链的比例百分比 %

5. 错误

HTTP 状态码见 公共错误说明。本接口无请求参数,一般不会出现参数错误。

最后更新于: