Docs

eth_getLogs - TRON RPC Method

Query event logs on TRON. Essential for indexing TRC-20 transfers, wallet operations, and EVM-compatible smart contract integrations on the TVM-compatible Layer 1 for TRC-20 payments, wallet APIs, and low-cost smart contract execution.

Returns an array of all logs matching a given filter object on TRON.

Why TRON? Build on the TVM-compatible Layer 1 for TRC-20 payments, wallet APIs, and low-cost smart contract execution with TVM compatibility paired with native TRON wallet APIs, DPoS block production, and low-cost transaction flows.

Use Cases

The eth_getLogs method is essential for:

  • Event indexing - Track contract events for TRC-20 transfers, wallet operations, and EVM-compatible smart contract integrations
  • Token transfers - Monitor ERC20/ERC721 transfers
  • DeFi analytics - Track swaps, liquidity events, and more
  • Notification systems - Alert on specific on-chain events

Code Examples

Error Handling

Error CodeMessageDescription
-32005Query returned more than 10000 resultsReduce block range
-32602Invalid paramsInvalid filter parameters
  • eth_newFilter - Create a filter for logs
  • eth_getFilterChanges - Poll filter for new logs