curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_newFilter \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_newFilter",
"id": 1,
"params": [
{
"address": [
"cc2e32f2388f0096fae9b055acffd76d4b3e5532",
"E518C608A37E2A262050E10BE0C9D03C7A0877F3"
],
"fromBlock": "0x989680",
"toBlock": "0x9959d0",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
null,
[
"0x0000000000000000000000001806c11be0f9b9af9e626a58904f3e5827b67be7",
"0x0000000000000000000000003c8fb6d064ceffc0f045f7b4aee6b3a4cefb4758"
]
]
}
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
TRON API method that creates a filter object for event log notifications. This method provides Ethereum-compatible interface for TRON blockchain.
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_newFilter \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_newFilter",
"id": 1,
"params": [
{
"address": [
"cc2e32f2388f0096fae9b055acffd76d4b3e5532",
"E518C608A37E2A262050E10BE0C9D03C7A0877F3"
],
"fromBlock": "0x989680",
"toBlock": "0x9959d0",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
null,
[
"0x0000000000000000000000001806c11be0f9b9af9e626a58904f3e5827b67be7",
"0x0000000000000000000000003c8fb6d064ceffc0f045f7b4aee6b3a4cefb4758"
]
]
}
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
jsonrpc
— the JSON-RPC protocol version (always “2.0”)method
— the method name (always “eth_newFilter”)params
— array containing method parameters
filterObject
— object containing filter criteria including address, fromBlock, toBlock, and topicsid
— request identifier (number or string)jsonrpc
— the JSON-RPC protocol version (“2.0”)id
— the request identifier that matches the requestresult
— a filter ID (hex-encoded string) for use with other filter methodsjsonrpc eth_newFilter
method is used for:
Filter ID for use with other filter methods
The response is of type object
.
Was this page helpful?