POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_getFilterLogs
eth_getFilterLogs
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getFilterLogs \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getFilterLogs",
  "id": 71,
  "params": [
    "0xc11a84d5e906ecb9f5c1eb65ee940b154ad37dce8f5ac29c80764508b901d996"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    "<any>"
  ]
}
TRON API method that returns all logs matching a previously created filter, providing an Ethereum-compatible interface for retrieving historical 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_getFilterLogs”)
  • params — array containing method parameters
    • filterId — the filter ID returned by eth_newFilter
  • 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 all log objects that match the filter criteria

Use case

The jsonrpc eth_getFilterLogs method is used for:
  • Retrieving all historical logs that match a previously created filter
  • Building comprehensive audit trails and analytics for smart contract interactions
  • Implementing batch processing systems that need complete log datasets through Web3 interfaces
  • Creating blockchain explorers and reporting tools that analyze contract event histories

Body

application/json
jsonrpc
string
default:2.0
required
method
string
default:eth_getFilterLogs
required
id
integer
default:71
required
params
string[]
required

The filter ID returned by eth_newFilter

Response

200 - application/json

Array of all log objects matching the filter criteria

jsonrpc
string
id
integer
result
any[]

Array of all log objects that match the filter criteria