eth_newFilter
Creates a filter object, based on filter options. To get all matching logs for specific filter, call eth_getFilterLogs. To check if the state has changed, call eth_getFilterChanges.
Parameters:
Returns:
Example:
// Request
curl https://cronos.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_newFilter","params":[{"topics":["0x1234123412341234123412341111111111111111111111111111111111111111"]}],"id":1}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x643ddb23a86e559f2a4fd33265cef32c"
}Last updated
Was this helpful?