Trongrid
The infrastructure for Tron developers
Install / Use
/learn @TRON-US/TrongridREADME
TronGrid
TronGrid v3 (TG3) uses a set of NodeJS apps to talk with Redis and PostgreSQL to provide a simple, fast and reliable query interface for the Tron API.
For a reference to the legacy(v2) version please refer to this version of the README
Notes:
Versioning
TronGrid v3 (TG3) will use api versioning moving forward. As this is the first iteration of the improved TronGrid, we will start with v1. ex: https://api.trongrid.io/v1
Endpoints
Parameters, Queries, & Return Values
- Addresses in TG3 can be passed in base58 or hex formats.
- Query parameters can be passed in camelCase or snake_case.
- All returned JSON properties will be in snake_case (at the first level at least)
- NB: In this document, we will primarily use base58 and snake_case formats
APIs
Accounts
1. Get Account Info By Address
- GET https://api.trongrid.io/v1/accounts/:address
- JavaTron (JT) API:
/wallet/getaccount
- Usage:
- Returns information about a specific account
- Params:
- address The account’s address in base58 or hex format (0x... and 41...)
- Options:
only_confirmedShows only the situation at latest confirmed block.true|falsedefaultfalse
- ex: https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq7only_confirmed=false
- Return example:
{
"success": true,
"meta": {
"at": 1558109062846,
"page_size": 1
},
"data": [
{
"account_resource": {
"energy_usage": 6027620,
"frozen_balance_for_energy": {
"expire_time": 1558164300000,
"frozen_balance": 2116000000000
},
"latest_consume_time_for_energy": 1558108998000
},
"address": "41704833c02883b3261f7baf62f8cb19b4b0c2e64e",
"allowance": 704953,
"asset": [...],
"assetV2": [...],
"asset_issued_ID": "31303031343736",
"asset_issued_name": "47616d65546f6b656e",
"balance": 4196409173,
"create_time": 1529897991000,
"free_asset_net_usageV2": [...],
"is_witness": true,
"latest_consume_free_time": 1557905064000,
"latest_opration_time": 1558108998000,
"latest_withdraw_time": 1557905064000
}
]
}
2. Get Transactions By Account Address
- GET https://api.trongrid.io/v1/accounts/:address/transactions
- JavaTron (JT) API:
/walletextension/gettransactionfromthis/walletextension/gettransactiontothis
- Usage:
- Returns all the transactions related to a specified account.
- Params:
addressThe account’s address - Options:
only_confirmedShows only confirmed.true|falsedefaultfalseonly_unconfirmedShows only unconfirmed.true|falsedefaultfalseonly_toOnly transaction to address.true|falsedefaultfalseonly_fromOnly transaction from address.true|falsedefaultfalselimitThe requested number of transaction per page. Default20. Max200.fingerprintThe fingerprint of the last transaction returned by the previous pageorder_byPre sorts the results during the query. Example:order_by=block_number,ascorder_by=block_timestamp,descmin_block_timestampThe minimum transaction timestamp default0Alias:min_timestampmax_block_timestampThe maximum transaction timestamp defaultnowAlias:max_timestamp
- ex: (N.B. Filter are non exclusives.)
- GET https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/transactions?only_to=true&only_from=true is equivalent to
- GET https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/transactions
3. Get Account Resources By Address
- GET https://api.trongrid.io/v1/accounts/:address/resources
- JavaTron (JT) API:
/wallet/getaccountresource
- Usage:
- Returns the resources associated to a specific account.
- Params:
addressThe account’s address
- ex: https://api.trongrid.io/v1/accounts/TLCuBEirVzB6V4menLZKw1jfBTFMZbuKq/resources
{
"free_net_used": 4740,
"free_net_limit": 5000,
"asset_net_used": [...],
"asset_net_limit": [...],
"total_net_limit": 43200000000,
"total_net_weight": 7001650727,
"energy_used": 366327641,
"energy_limit": 402999576,
"total_energy_limit": 100000000000,
"total_energy_weight": 496278437
}
Assets
1. Get All Assets
- GET https://api.trongrid.io/v1/assets
- Usage:
- Returns all the assets.
- Options:
order_bySorts the results. Accepted fields:total_supply,asc|total_supply,descstart_time,asc|start_time,descend_time,asc|end_time,descid,asc|id,desc- Example:
order_by=total_supply,asc
2. Get Assets By Identifier
- GET https://api.trongrid.io/v1/assets/:identifier
- JavaTron (JT) API:
/wallet/getassetissuebyaccount/wallet/getassetissuebyid
- Usage:
- Returns all the assets with the specified id or owner.
- Params:
identifierThe identifier to be used to retrieve the asset It can be the ID of the asset, or the issuer address
- Options:
only_confirmedShows only the situation at latest confirmed block.true|falsedefaultfalse
3. Get Assets By Name
- GET https://api.trongrid.io/v1/assets/:name/list
- JavaTron (JT) API:
/wallet/getassetissuelistbyname/wallet/getassetissuelist
- Usage:
- Returns all the assets with the specified name.
- Params:
nameThe name of the asset(s)
- Options:
limitThe requested number of assets per page. Default20. Max200. When there is a pagination, the minimum limit is set to20.fingerprintThe fingerprint of the last asset returned by the previous page.order_byPre sorts the results during the query.- Example:
order_by=total_supply,asc(starts from the rarest token)order_by=start_time,desc(starts from the most recent ICO)
- Example:
only_confirmedShows only the situation at latest confirmed block.true|falsedefaultfalse
Blocks
1. Returns Events By Block Identifier
- GET https://api.trongrid.io/v1/blocks/:identifier/events
- Usage:
- Returns all the events in the specified block. Depending on the data, the entire block can be confirmed or unconfirmed.
- Params:
identifierIt can be either latest, a block number or a block id.
Contracts
1. Get Events By Contract Address
- GET https://api.trongrid.io/v1/contracts/:address/events
- Usage:
- Returns the events emitted by a smart contract.
- Params:
addressThe address of the deployed contract.
- Options:
only_confirmedShows only confirmed.true|falsedefaultfalseonly_unconfirmedShows only unconfirmed.true|falsedefaultfalseevent_nameThe name of the eventblock_numberThe block number for which the events are requiredmin_block_timestampThe minimum block timestamp default0Alias:min_timestampmax_block_timestampThe maximum block timestamp defaultnowAlias:max_timestamplimitFor pagination. Limit 20fingerprintThe fingerprint of last event retrieved in the pageorder_bySort the events.- Accepted values:
block_timestamp,asc(alias:timestamp,asc)block_timestamp,desc(default)
- Accepted values:
2. Get Transactions By Contract Address
- GET https://api.trongrid.io/v1/contracts/:address/transactions
- Usage:
- Returns the transactions related a smart contract.
- Params:
addressThe address of the deployed contract.
- Options:
only_confirmedShows only confirmed.true|falsedefaultfalseonly_unconfirmedShows only unconfirmed.true|falsedefaultfalsemin_block_timestampThe minimum block timestamp default0Alias:min_timestampmax_block_timestampThe maximum block timestamp defaultnowAlias:max_timestamplimitFor pagination. Limit20fingerprintThe fingerprint of last event retrieved in the pageorder_bySort the events.- Accepted values:
block_timestamp,asc(alias:timestamp,asc)block_timestamp,desc(default)
- Accepted values:
Transactions
1. Get Events By Transaction ID
- GET https://api.trongrid.io/v1/transactions/:id/events
- Usage:
- Returns the events emitted by a transaction.
- Params:
idThe id of the transaction
------
TronWeb compatibility
To keep compatibility with TronWeb, TronGrid supports also the legacy format.
The Following are Four Methods for Polling:
1. By Contract Address:<br>
https://api.trongrid.io/event/contract/TEEXEWrkMFKapSMJ6mErg39ELFKDqEs6w3
2. By Contract Address and Event Name:<br>
curl https://api.trongrid.io/event/contract/TEEXEWrkMFKapSMJ6mErg39ELFKDqEs6w3/DiceResult
3. By Contract Address, Event Name, and Block Height:
https://api.trongrid.io/event/contract/TEEXEWrkMFKapSMJ6mErg39ELFKDqEs6w3/DiceResult/7273383
4. By Transaction ID:<br>
https://api.trongrid.io/event/transaction/d74ba9c3947b509db385fe2df5fb1dc49f10fb33da93e1e5903d897714ef0f5c
Request Parameters:<br>
fromTimestamp sets a time stamp, default 0, returning all events after or before that timestamp. For example:
https://api.trongrid.io/event/contract/TEEXEWrkMFKapSMJ6mErg39ELFKDqEs6w3?fromTimestamp=1541547888000
For retro-compatibility you can pass since instead of fromTimestamp.
size indicates the number of results returned. Default is 20, maximum is 200. Example:
https://api.trongrid.io/event/contract/TMJnJcHfdP5rhmXVkwRYb1a9A6gS46PUm6/Notif
Related Skills
tmux
349.2kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
diffs
349.2kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
blogwatcher
349.2kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Unla
2.1k🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
Security Score
Audited on Aug 17, 2025
