POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_getLogs
eth_getLogs
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getLogs \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getLogs",
  "id": 1,
  "params": [
    {
      "fromBlock": "0x1",
      "toBlock": "0x2",
      "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
      "topics": [
        "0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"
      ]
    }
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    "<any>"
  ]
}
TRON API method that retrieves event logs based on filter criteria, providing an Ethereum-compatible interface for accessing TRON blockchain data.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

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

Body

application/json

Response

200 - application/json

Array of log objects matching the filter criteria

The response is of type object.