We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We want to be able to grab logs like web3. Just a getLogs kind of method, but with topic filtering:
Currently one has to do something like this:
eth.getLogs({ address: 'CONTRACT_ADDRESS', topics: [`0x${Eth.keccak256(`${abi[0].name}(${abi[0].inputs.map(v => v.type).join(',')})`)}`], }) .then(console.log);
We can bind that into that contract object like so:
contractObject.filterName.getLogs with the contract address and topic array predefined/filled.
we can also pre-define the topic name output as so:
contractObject.fitlerName.topic which will produce the sha3 hash.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Type
Description
We want to be able to grab logs like web3. Just a getLogs kind of method, but with topic filtering:
Currently one has to do something like this:
We can bind that into that contract object like so:
contractObject.filterName.getLogs with the contract address and topic array predefined/filled.
we can also pre-define the topic name output as so:
contractObject.fitlerName.topic which will produce the sha3 hash.
The text was updated successfully, but these errors were encountered: