Last updated 1 month ago
Was this helpful?
None
QUANTITY - A filter id.
// Request curl https://base.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_newBlockFilter","params":[],"id":1}' // Result { "jsonrpc": "2.0", "id": 1, "result": "0x624a53f3bb6a41d6931e3988ed925600" }
Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges.