mirror of
https://github.com/zkitter/eth-json-rpc-filters.git
synced 2026-01-08 04:23:59 -05:00
main
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3) --- updated-dependencies: - dependency-name: qs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
eth-json-rpc-filters
json-rpc-engine middleware implementing ethereum filter methods.
Backed by an eth-block-tracker and web3 provider interface (web3.currentProvider).
supported rpc methods
eth_newFiltereth_newBlockFiltereth_newPendingTransactionFiltereth_uninstallFiltereth_getFilterChangeseth_getFilterLogs
usage
basic usage:
const filterMiddleware = createFilterMiddleware({ blockTracker, provider })
engine.push(filterMiddleware)
cleanup:
// remove blockTracker handler to free middleware for garbage collection
filterMiddleware.destroy()
Running Tests
yarn test
Changelog
2.0
- expect EthBlockTracker@4
Languages
JavaScript
100%