curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--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": "<array>"
}TRON API method that returns an array of logs matching the specified filter criteria. This method provides Ethereum-compatible interface for TRON blockchain.
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc \
--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": "<array>"
}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 topicsid — request identifier (number or string)jsonrpc — the JSON-RPC protocol version (“2.0”)id — the request identifier that matches the requestresult — array of log objects matching the filter criteriajsonrpc eth_getLogs method is used for:
Was this page helpful?