You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For my use case I like to call eth_getLogs to gather past events that match the filter parameter in one go (basically I expect to get an array of matching logs)
If this could be added to ethjs as a general method as well as contract event specific, this would be cool
web3 1.0 does this via getPastEvent for contract :
You may be interested in my PR on eth-js ethjs/ethjs#5 and my comment on eth-js query ethjs/ethjs-query#7 that demonstrates how eth_getLogs is kind of broken. I had to use web3 to serialize the event.
ethjs-contract
Description
For my use case I like to call eth_getLogs to gather past events that match the filter parameter in one go (basically I expect to get an array of matching logs)
If this could be added to ethjs as a general method as well as contract event specific, this would be cool
web3 1.0 does this via getPastEvent for contract :
https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#getpastevents
and getPastLogs for the general case
https://web3js.readthedocs.io/en/1.0/web3-eth.html#getpastlogs
The text was updated successfully, but these errors were encountered: