POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_newBlockFilter
eth_newBlockFilter
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_newBlockFilter \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_newBlockFilter",
  "id": 1,
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
TRON API method that creates a filter object for receiving new block notifications, providing an Ethereum-compatible interface for monitoring TRON blockchain blocks.
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_newBlockFilter”)
  • params — empty array (no parameters required)
  • 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_newBlockFilter method is used for:
  • Creating filter objects to receive notifications about new blocks as they are mined
  • Building real-time blockchain monitoring applications through Web3 interfaces
  • Implementing block-based event systems for dApps that need to react to new blocks
  • Setting up efficient polling mechanisms for blockchain synchronization and data processing

Body

application/json

Response

200 - application/json

Filter ID for use with other filter methods

The response is of type object.