> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# jsonrpc eth_getLogs | TRON

> TRON API method that returns an array of logs matching the specified filter criteria. This method provides Ethereum-compatible interface for TRON blockchain.

TRON API method that retrieves event logs based on filter criteria, providing an Ethereum-compatible interface for accessing TRON blockchain data.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "eth\_getLogs")
* `params` — array containing method parameters
  * `filterObject` — object containing filter criteria including fromBlock, toBlock, address, and topics
* `id` — request identifier (number or string)

## Response

* `jsonrpc` — the JSON-RPC protocol version ("2.0")
* `id` — the request identifier that matches the request
* `result` — array of log objects matching the filter criteria

## Use case

The `jsonrpc eth_getLogs` method is used for:

* Retrieving smart contract event logs for dApp functionality through Web3 interfaces
* Building event-driven applications that react to on-chain activities
* Implementing transaction and event monitoring systems for compliance and analytics
* Creating blockchain explorers and audit tools that track contract interactions


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_eth_getLogs.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: eth_getLogs example
  version: 1.0.0
  description: >-
    This is an API example for eth_getLogs, a method to get event logs matching
    specified filter criteria on the TRON network through Ethereum-compatible
    JSON-RPC interface.
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/jsonrpc:
    post:
      tags:
        - TRON JSON-RPC Operations
      summary: eth_getLogs
      operationId: getLogs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getLogs
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - fromBlock: '0x1'
                      toBlock: '0x2'
                      address: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
                      topics:
                        - >-
                          0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b
                  items:
                    type: object
                    description: Filter object with fromBlock, toBlock, address, and topics
      responses:
        '200':
          description: Array of log objects matching the filter criteria
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    description: Array of log objects matching the filter criteria

````