cURL
curl --request POST \ --url https://{network}.s.chainbase.online/v1/{api-key} \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [] }'
{ "id": 1, "jsonrpc": "2.0", "result": "<string>" }
Creates a block filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges.
eth_getFilterChanges
Parameters
None
Returns
QUANTITY
"demo"
Successful Response
The response is of type object.
object