Skip to content

get logs in one go (no listening) #9

@wighawag

Description

@wighawag

ethjs-contract

  • Feature

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions