eth_newBlockFilter

Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges. The API credit value for this method is 2

  1. Parameters- This method does not accept any parameters

curl https://Krypc-End Point URL/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_newBlockFilter","params":[],"id":67}'
  1. Result

    result-It returns a filter id to be used when calling eth_getFilterChanges

Last updated