API Reference

eth_newBlockFilter

'Creates a filter in a node to enable notifications for the arrival of new blocks.'
'You can use the eth_getFilterChanges method to check whether the state of the filter has changed.'

🚧

Limits:

The filter expires if it remains inactive (no queries) for 5 minutes.

Request Parameters

None.

Response

The unique ID of the filter.

Result Fields

  • FILTER ID: a hexadecimal string, which indicates the ID of the newly created filter.

Examples

Example Responses
{
	"result": "0x9298b6a4fdd9d422c008bec71e0c938e",
	"id": 1,
	"jsonrpc": "2.0"
}
Language
Click Try It! to start a request and see the response here!