Skip to Content
APIStatisticsGet Top 10 Statistics

Get Top 10 Statistics

1. Overview & Typical Use

Returns top statistics data across multiple dimensions including overview, accounts, tokens, contracts, and resources.

  • Typical use: display leaderboard data across dimensions, render Top N components on a homepage.
  • When not to use: for single contract call details use “Get Contract Call Statistics”.

2. Endpoint & Authentication

GET /api/top10

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

3. Request

ParameterTypeRequiredDefaultDescription
timeintegerNo1Time type. 0: real-time, 1: last hour, 2: last 24 hours, 3: last week, 4: last 3 days
typestringNo0Statistics type, values 0–20; multiple nonzero types may be comma-separated (for example, 1,2,17). 0: overview; 1: accounts by TRX sent; 2: accounts by TRX send count; 3: accounts by TRX received; 4: accounts by TRX receive count; 5: accounts by TRX frozen; 6: accounts by votes; 7: tokens by holder count; 8: tokens by active accounts; 9: tokens by total transaction count; 10: tokens by total transaction amount; 11: contracts by TRX balance; 12: contracts by caller count; 13: contracts by call count; 14: accounts by energy consumption; 15: accounts by bandwidth consumption; 16: contracts by energy consumption; 17: contracts by fee consumption; 18: hot tokens; 19: hot contracts; 20: account fee usage

4. Response

When type=0 (overview)

Top-level fields (all string type except start_time / end_time which are integer):

FieldTypeRequiredDescriptionUnit/Precision
token_recordstringRequiredTotal tokens ever issued (including inactive)—
trc20_recordstringRequiredTotal TRC20 tokens ever issued—
trc10_recordstringRequiredTotal TRC10 tokens ever issued—
token_allstringRequiredCurrent active token count—
trc20_allstringRequiredCurrent active TRC20 token count—
trc10_allstringRequiredCurrent active TRC10 token count—
whole_votestringRequiredTotal votes on the network—
whole_freezestringRequiredTotal TRX frozen on the networkTRX
contract_whole_balancestringRequiredTotal TRX balance across all contractsTRX
start_timeintegerRequiredStatistics start timeMillisecond timestamp
end_timeintegerRequiredStatistics end timeMillisecond timestamp
last_hour_contract_active_addressstringRequiredActive contract addresses in the last hour—
last_hour_contract_triggersstringRequiredContract trigger count in the last hour—
last_hour_energy_usagestringRequiredEnergy usage in the last hour—
last_hour_net_usagestringRequiredBandwidth usage in the last hour—
last_hour_token10_active_addressstringRequiredActive TRC10 addresses in the last hour—
last_hour_token10_sum_transactionstringRequiredTRC10 transaction count in the last hour—
last_hour_token10_sum_transaction_amountstringRequiredTRC10 total transaction amount in the last hour—
last_hour_token20_active_addressstringRequiredActive TRC20 addresses in the last hour—
last_hour_token20_sum_transactionstringRequiredTRC20 transaction count in the last hour—
last_hour_token20_sum_transaction_amountstringRequiredTRC20 total transaction amount in the last hour—
last_hour_trx_transaction_numberstringRequiredTRX transaction count in the last hour—
last_hour_trx_transfer_amountstringRequiredTRX transfer amount in the last hourTRX
last_hour_whole_contract_usestringRequiredContract resource usage in the last hour—
last_hour_whole_energy_burnstringRequiredEnergy burned in the last hour—
last_hour_whole_energy_usestringRequiredNetwork-wide energy usage in the last hour—
last_hour_whole_fee_burnstringRequiredFee burned in the last hoursun
last_hour_whole_net_burnstringRequiredBandwidth burned in the last hour—
last_hour_whole_net_usestringRequiredNetwork-wide bandwidth usage in the last hour—
last_day_contract_active_addressstringRequiredActive contract addresses in the last 24 hours—
last_day_contract_triggersstringRequiredContract trigger count in the last 24 hours—
last_day_energy_usagestringRequiredEnergy usage in the last 24 hours—
last_day_net_usagestringRequiredBandwidth usage in the last 24 hours—
last_day_token10_active_addressstringRequiredActive TRC10 addresses in the last 24 hours—
last_day_token10_sum_transactionstringRequiredTRC10 transaction count in the last 24 hours—
last_day_token10_sum_transaction_amountstringRequiredTRC10 total transaction amount in the last 24 hours—
last_day_token20_active_addressstringRequiredActive TRC20 addresses in the last 24 hours—
last_day_token20_sum_transactionstringRequiredTRC20 transaction count in the last 24 hours—
last_day_token20_sum_transaction_amountstringRequiredTRC20 total transaction amount in the last 24 hours—
last_day_trx_transaction_numberstringRequiredTRX transaction count in the last 24 hours—
last_day_trx_transfer_amountstringRequiredTRX transfer amount in the last 24 hoursTRX
last_day_whole_contract_usestringRequiredContract resource usage in the last 24 hours—
last_day_whole_energy_burnstringRequiredEnergy burned in the last 24 hours—
last_day_whole_energy_usestringRequiredNetwork-wide energy usage in the last 24 hours—
last_day_whole_fee_burnstringRequiredFee burned in the last 24 hourssun
last_day_whole_net_burnstringRequiredBandwidth burned in the last 24 hours—
last_day_whole_net_usestringRequiredNetwork-wide bandwidth usage in the last 24 hours—
last_three_day_contract_active_addressstringRequiredActive contract addresses in the last 3 days—
last_three_day_contract_triggersstringRequiredContract trigger count in the last 3 days—
last_three_day_energy_usagestringRequiredEnergy usage in the last 3 days—
last_three_day_net_usagestringRequiredBandwidth usage in the last 3 days—
last_three_day_token10_active_addressstringRequiredActive TRC10 addresses in the last 3 days—
last_three_day_token10_sum_transactionstringRequiredTRC10 transaction count in the last 3 days—
last_three_day_token10_sum_transaction_amountstringRequiredTRC10 total transaction amount in the last 3 days—
last_three_day_token20_active_addressstringRequiredActive TRC20 addresses in the last 3 days—
last_three_day_token20_sum_transactionstringRequiredTRC20 transaction count in the last 3 days—
last_three_day_token20_sum_transaction_amountstringRequiredTRC20 total transaction amount in the last 3 days—
last_three_day_trx_transaction_numberstringRequiredTRX transaction count in the last 3 days—
last_three_day_trx_transfer_amountstringRequiredTRX transfer amount in the last 3 daysTRX
last_three_day_whole_contract_usestringRequiredContract resource usage in the last 3 days—
last_three_day_whole_energy_burnstringRequiredEnergy burned in the last 3 days—
last_three_day_whole_energy_usestringRequiredNetwork-wide energy usage in the last 3 days—
last_three_day_whole_fee_burnstringRequiredFee burned in the last 3 dayssun
last_three_day_whole_net_burnstringRequiredBandwidth burned in the last 3 days—
last_three_day_whole_net_usestringRequiredNetwork-wide bandwidth usage in the last 3 days—
last_week_contract_active_addressstringRequiredActive contract addresses in the last week—
last_week_contract_triggersstringRequiredContract trigger count in the last week—
last_week_energy_usagestringRequiredEnergy usage in the last week—
last_week_net_usagestringRequiredBandwidth usage in the last week—
last_week_token10_active_addressstringRequiredActive TRC10 addresses in the last week—
last_week_token10_sum_transactionstringRequiredTRC10 transaction count in the last week—
last_week_token10_sum_transaction_amountstringRequiredTRC10 total transaction amount in the last week—
last_week_token20_active_addressstringRequiredActive TRC20 addresses in the last week—
last_week_token20_sum_transactionstringRequiredTRC20 transaction count in the last week—
last_week_token20_sum_transaction_amountstringRequiredTRC20 total transaction amount in the last week—
last_week_trx_transaction_numberstringRequiredTRX transaction count in the last week—
last_week_trx_transfer_amountstringRequiredTRX transfer amount in the last weekTRX
last_week_whole_contract_usestringRequiredContract resource usage in the last week—
last_week_whole_energy_burnstringRequiredEnergy burned in the last week—
last_week_whole_energy_usestringRequiredNetwork-wide energy usage in the last week—
last_week_whole_fee_burnstringRequiredFee burned in the last weeksun
last_week_whole_net_burnstringRequiredBandwidth burned in the last week—
last_week_whole_net_usestringRequiredNetwork-wide bandwidth usage in the last week—

When type is not 0

Response is an array; each element contains start_time, end_time, type, and data fields.

FieldTypePresenceDescriptionUnit
typeintegerRequiredRanking identifier (1–20).—
start_timeintegerRequiredStart of this ranking snapshot; use the returned window.ms
end_timeintegerRequiredEnd of this ranking snapshot; cached snapshots may be older than the request.ms
update_timeintegerOptionalSource update timestamp, when available. Observed type=5/6 rows use seconds; other observed modes use milliseconds. Do not apply one unit to every mode.s / ms
dataarrayRequiredRanking entries described below; an unavailable snapshot returns [] inside this envelope.—
wholeFeeBurnstringOptionaltype=17 only, when total_contract_fee_usage is available; the same aggregate serialized as a string.TRX

type=5/6/7/11 always reads the latest stored snapshot, regardless of time. The returned time fields describe available source metadata or a fallback window; they do not guarantee fresh data.

Shared data[] fields

Accounts (type=1–6,14,15,20)

FieldTypePresenceDescriptionUnit
addressstringRequiredRanked account address.—
addressTagstringOptionalAddress label; may be absent or empty.—
percentagenumberRequiredShare of the ranked metric in the snapshot population, not a share recalculated from only the returned top ten.ratio

Tokens (type=7–10)

FieldTypePresenceDescriptionUnit
token_idstringRequiredToken identifier: TRC10 ID, TRC20 contract, or _ / 0 for native TRX depending on the snapshot.—
typeintegerRequiredToken standard: 10 = TRC10/native TRX, 20 = TRC20. Distinct from the outer ranking type.—
namestringOptionalToken name.—
abbrstringOptionalToken abbreviation.—
logostringOptionalToken logo URL.—
vipbooleanRequiredWhether the token is VIP-tagged.—

Contracts (type=11,12,13,16,17)

FieldTypePresenceDescriptionUnit
contractstringRequiredRanked contract address.—
percentagenumberRequiredShare of the ranked metric in the snapshot population, not just the returned top ten.ratio
namestringOptionalContract name.—
isTokenbooleanOptionalWhether contract metadata identifies a token contract.—
riskbooleanOptionalContract risk flag.—
vipbooleanOptionalVIP flag.—
tag1stringOptionalPublic address label; may be empty.—
tag1UrlstringOptionalLink associated with the public label.—
tag1Url_levelintegerOptionalClassification of tag1Url, when supplied.—
blueTagUrlstringOptionalProject URL.—
blueTagUrl_levelintegerOptionalClassification of blueTagUrl, when supplied.—
publicTagDescstringOptionalPublic label description.—

Ranking metrics in data[]

The following fields occur in nonempty entries only for the listed outer ranking type and snapshot variant. Snapshot-specific fields are conditional; do not require both the current and legacy variants on one entry.

Ranking type / snapshotFieldTypeMeaningUnit
1/3amountnumberTRX sent (1) or received (3) during the statistics window, already converted from SUN.TRX
1–4typeintegerToken-standard marker 10 for TRX; distinct from the outer ranking type.—
2/4/9transaction_numbernumberTRX outgoing (2), TRX incoming (4), or token (9) transfer count; may be serialized with a decimal point.Count
5freezenumberStaked TRX balance, truncated to whole TRX in this snapshot.TRX
5/6vote / votesnumberVotes cast by the account: vote in mode 5, votes in mode 6.Votes
5votePercentagenumberAccount votes / total votes in the snapshot; percentage on the same record is the staking share.0–1
7holdersnumberNumber of token-holding addresses.Addresses
7percentagenumberHolder count / summed holder counts across tokens in the statistics; an address can hold multiple tokens.0–1
8address_numbernumberActive transfer address count; day/week/three-day snapshots count senders and receivers, while legacy hourly snapshots count senders.Addresses
8–10percentagenumber | stringMetric share in the USD/current snapshot, or growth ratio in the legacy hourly snapshot; see snapshot variants below.Ratio
10 (USD snapshot)priceInUsdnumberTotal transferred value in USD; not a unit token price.USD
10 (legacy hourly)amountnumberTransferred token quantity, already adjusted for token decimals.Token units
10 (legacy hourly)tokenPricenumberTRX price per whole token.TRX/token
10 (legacy hourly)priceInTrxnumberTotal transferred value in TRX: amount * tokenPrice.TRX
11holdersnumberContract TRX balance, despite the field name; not a holder count.TRX
12active_addressnumberNumber of distinct addresses calling the contract.Addresses
13triggersnumberContract trigger count during the statistics window.Count
14/16energy_usenumberEnergy supplied by the sender/caller’s resources.Energy
14/16energy_burnnumberEnergy obtained by burning TRX; a resource quantity.Energy
14/16contract_usenumberEnergy supplied by the contract deployer.Energy
14/16whole_energy_usenumberTotal Energy: energy_use + energy_burn + contract_use; attributed to an account (14) or contract (16).Energy
15net_usenumberBandwidth supplied by staked or free resources.Bandwidth
15net_burnnumberBandwidth obtained by burning TRX; a resource quantity.Bandwidth
15whole_net_usenumberTotal Bandwidth: net_use + net_burn.Bandwidth
17/20totalBurnnumberTRX burned for Energy plus Bandwidth; attributed to contract calls (17) or an account (20).TRX
17 (day/week/three-day)energy_burnnumberTRX burned for Energy; unlike the same field in modes 14/16, this is a currency amount.TRX
17 (legacy hourly), 20energyBurnnumberTRX burned for Energy.TRX
17/20netBurnnumberTRX burned for Bandwidth.TRX
17 (day/week/three-day)total_contract_fee_usagenumberResource-fee burn across all contract calls in the snapshot; denominator of percentage, not another fee to add to this row.TRX

Snapshot variants and empty results

For type=8/9/10, the observed day/week/three-day snapshots return a numeric percentage: the token metric divided by the corresponding total across all tokens included in the statistics, before truncation to ten entries. The legacy hourly snapshots return a string growth ratio (current - base) / base, where base = max(previous snapshot value, 1) (missing history also uses 1). This growth ratio can be negative or greater than 1; it is not a share of the total. Multiply either ratio by 100 only when displaying a percentage.

For type=10, the observed legacy hourly shape uses amount, tokenPrice, and priceInTrx; the USD-valued shape uses priceInUsd. For type=17, select energy_burn or legacy energyBurn; both are TRX amounts in this mode. Treat these as snapshot variants rather than requiring every field together.

All 20 modes retain the array envelope when data is empty. A zero-length data array means no ranking entries are available for that snapshot, not that every metric is zero. type=18/19 returned data: [] for every tested time=0–4; their nonempty field contracts remain unconfirmed.

5. Errors

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

  • When type is not 0: the response format is an array, not an object — parse accordingly.