参数
filterobject必填- fromBlock, toBlock, address and topics, as in eth_getLogs.
返回值
string Filter ID.
适用场景
Follow new events without managing block ranges: create a filter once, then poll eth_getFilterChanges every few seconds.
如何解读结果
The result is an opaque filter ID; keep it and pass it to the polling methods.
提示
- A filter that is not polled for about 5 minutes is removed; create a new one if polling returns "filter not found".
- For history and backfills use eth_getLogs with block ranges: filters only see new blocks.
- Call eth_uninstallFilter when you are done.