Home

Create a new block filter

POST
https://vinu.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Creates a filter that collects the hash of every block sealed after the filter was created. Poll it with eth_getFilterChanges, which returns the hashes seen since the previous poll, and remove it with eth_uninstallFilter when you are done.

The returned id is a 16-byte hex string with leading zeros stripped, so it is not always 34 characters long - treat it as an opaque string and do not left-pad or normalise it.

Requests to this endpoint are balanced across a pool of nodes, and a filter is only visible to the node that created it. For anything that must be reliable, poll with an explicit block range instead of a filter.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsArray<any>required

This method does not require any parameters.

idintegerrequired

Response

200OK

Filter ID created successfully

405Method Not Allowed

Method not served by this endpoint. The body is the plain-text string Method Not Allowed, not JSON.

422Unprocessable Entity

Missing API key - the api-key header was absent. The body is the plain-text string Missing API_key, not JSON.