Contract
List of smart contract interfaces.
Get list of contracts
The value sum of start and limit must be less than or equal to 10000.
Returns a list of contracts.
GET https://apilist.tronscanapi.com/api/contracts?count=true&limit=20&confirm=0&start=0&verified-only=true&open-source-only=false&sort=-trxCountTry this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
search | Search by contract name or contract address |
sort | Sort fields: -trxCount, -balance, -timestamp. Default: -trxCount |
start | Start number. Default: 0 |
limit | Number of items per page. Default: 20 |
open-source-only | Whether to show only open source contracts |
verified-only | Whether to show only verified contracts |
Get contract detail information
The maximum value for limit is 200.
Returns contract detail information.
GET https://apilist.tronscanapi.com/api/contract?contract=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3STry this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
contract | Contract address |
Get event information of the contract
This is a POST request. Please use the POST method to get the data.
Returns a list of event information for the contract.
POST https://apilist.tronscanapi.com/api/contracts/smart-contract-triggers-batch?fields=hash,methodTry this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
contractAddress | Contract address |
hashList | A list of transaction hashes |
term | Query content — supports block number and event name |
limit | Number of items per page. Default: 20 |
Get contract energy statistics
Returns Energy statistic data of a contract.
GET https://apilist.tronscanapi.com/api/onecontractenergystatistic?address=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3STry this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
address | Contract address |
Get contract call statistics
Returns contract call statistics.
GET https://apilist.tronscanapi.com/api/contracts/top_call?contract_address=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3STry this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
contract_address | Contract address |
Get the number of unique addresses called per day for a contract over a certain period of time
Returns the number of unique addresses called per day for a contract over a certain period of time.
GET https://apilist.tronscanapi.com/api/onecontractcallerstatistic?address=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S&start_timestamp=1621900800000&end_timestamp=1621987200000Try this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
address | Contract address |
start_timestamp | Start time, accurate to seconds |
end_timestamp | End time, accurate to seconds |
Get the list of the number of calls per day of the contract
Returns a list of the number of calls per day of the contract.
GET https://apilist.tronscanapi.com/api/onecontracttriggerstatistic?address=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S&start_timestamp=1621900800000&end_timestamp=1621987200000Try this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
address | Contract address |
start_timestamp | Start time, accurate to seconds |
end_timestamp | End time, accurate to seconds |
Get the list of daily analysis data for the contract over a period of time
Returns a list of daily analysis data for the contract over a period of time.
GET https://apilist.tronscanapi.com/api/contract/analysis?address=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S&type=0&start_timestamp=1680430566127&end_timestamp=1680516966127Try this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
address | Contract address |
type | Query data type (see below) |
start_timestamp | Start time, accurate to seconds |
end_timestamp | End time, accurate to seconds |
type values:
| Value | Description |
|---|---|
0 | Balance — TRX balance, the price of TRX on that day (calculated using USDT) |
1 | Token transfers — number of TRC20 token transfers and number of tokens transferred |
2 | Energy consumption — from frozen TRX, from burning TRX, provided by contract deployers |
3 | Bandwidth consumption — from free Bandwidth or frozen TRX, from burning TRX |
4 | Contract calling — number of calls and number of calling accounts |
5 | Fees — Bandwidth and Energy consumed from burning TRX |
Get the list of all callers of the contract and the statistics of the number of calls
Returns a list of all callers of the contract and the statistics of the number of calls.
GET https://apilist.tronscanapi.com/api/onecontractcallers?address=TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S&day=1680429735649&limit=2&start=0Try this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
address | Contract address |
day | Query the number of days, counted backwards from current time. Default: yesterday |
start | Start number. Default: 0 |
limit | Number of items per page. Default: 10 |
Get the list of trigger transactions for a certain time period
The maximum value for limit is 200.
Returns a list of trigger transactions for a certain time period.
GET https://apilist.tronscanapi.com/api/contracts/trigger?limit=1&start=0&start_timestamp=1680430566127&end_timestamp=1680508302533Try this endpoint in your browser ↗ 🔗
Request
| Parameter | Description |
|---|---|
start | Start number. Default: 0 |
limit | Number of items per page. Default: 10 |
start_timestamp | Start time, accurate to milliseconds |
end_timestamp | End time, accurate to milliseconds |