eth_newFilter
POST
Creates a filter object based on filter options ({fromBlock, toBlock, address, topics}) to notify when the state changes (logs). Use eth_getFilterChanges to poll it.
Sent as a JSON text message over the WebSocket connection wss://linea.nownodes.io/wss/{{api-key}}.
Connection URL:
Copied!
wss://linea.nownodes.io/wss/{{api_key}}.Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://linea.nownodes.io/wss/YOUR_API_KEY.'
> {"jsonrpc":"2.0","method":"eth_newFilter","id":73,"params":[{"fromBlock":"0x1","toBlock":"0x2","address":"0x8888f1f195afa192cfee860698584c030f4c9db1","topics":["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b",null,["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b","0x0000000000000000000000000aff3454fce5edbc8cca8697c15331677e6ebccc"]]}]}
Copied!
wss://linea.nownodes.io/wss/{{api-key}}Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.