Skip to Content
APIContractGet Contract Call Statistics

Get Contract Call Statistics

1. Overview & Typical Use

Returns the top caller addresses, top called methods, and cumulative call count summary for a contract.

  • Typical use: analyze the main caller distribution of a contract, understand the most frequently called methods, evaluate contract activity.
  • When not to use: to view daily unique caller counts by time range use “Get Contract Daily Unique Caller Count”; to see the full caller list use “Get All Contract Callers”.

2. Endpoint & Authentication

GET /api/contracts/top_call

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

3. Request

ParameterTypeRequiredDefaultDescription
contract_addressstringYesContract address (Base58, starts with T)

4. Response

Top-level

FieldTypeRequiredDescriptionUnit/Precision
recentCallTimesintegerRequiredTotal recent calls
timeLongintegerRequiredStatistics period startmillisecond timestamp
totalAddressintegerRequiredCumulative unique caller count
totalCallTimesintegerRequiredCumulative total call count
topAddressarrayRequiredTop caller address list
topMethodsarrayRequiredTop called method list
contractMapobjectRequiredAddress → whether it is a contract (may be empty object when querying the contract itself)
contractInfoobjectRequiredContract address → label info (may be empty object when querying the contract itself)

topAddress[] element

FieldTypeRequiredDescriptionUnit/Precision
addressstringRequiredCaller address
addressTagstringOptionalAddress label
countintegerRequiredCall count
rationumberRequiredCall share

topMethods[] element

FieldTypeRequiredDescriptionUnit/Precision
methodIdstringRequiredMethod selector
timesintegerRequiredCall count
rationumberRequiredCall share

5. Errors

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

  • Contract address does not exist: returns 200 + empty arrays and zero counts.
  • Empty result is not an error: when the contract has no call records, this is a normal response.
Last updated on: