Comment on page
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.
None
QUANTITY - A filter id.
// Request
curl https://polygon.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": "0x7eb0a5dc43ede5a9b4c06ad7be5769e9"
}
Last modified 1yr ago