POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_newFilter
eth_newFilter
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 receiving event log notifications, providing an Ethereum-compatible interface for monitoring 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_newFilter”)
  • params — array containing method parameters
    • filterObject — object containing filter criteria including address, fromBlock, toBlock, 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 — a filter ID (hex-encoded string) for use with other filter methods

Use case

The jsonrpc eth_newFilter method is used for:
  • Creating filter objects to receive notifications about new logs that match specific criteria
  • Setting up event monitoring for smart contract interactions through Web3 interfaces
  • Building real-time dApp functionality that responds to blockchain events
  • Implementing efficient event polling systems for transaction monitoring and analytics

Body

application/json

Response

200 - application/json

Filter ID for use with other filter methods

The response is of type object.