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 new block notifications. This method provides Ethereum-compatible interface for TRON blockchain.
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>"
}
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)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_newBlockFilter
method is used for:
Filter ID for use with other filter methods
The response is of type object
.
Was this page helpful?