Replies: 2 comments 2 replies
-
I don't think that is possible as the 'event name' is the key that is needed to be sent to the server. What you can do however is wrap them into Promise.all(and decode them afterwards) as under the hood, they are just http calls. The newer geth have something called GQL which should make this kind of thing easier but I haven't digged into that yet and not sure if ethers.js will support it. |
Beta Was this translation helpful? Give feedback.
-
Hello all, I believe this is possible and here is a fragment of code that should work: // Signature of two different events
const firstTopic = [
utils.id(`Buy(address,address,uint256,uint256)`),
utils.id(`Sell(address,address,uint256,uint256)`),
const filter = {
address, // address is the contract's addres...
topics: [firstTopic],
}
// the contract variable/constant is the corresponding instance of Contract
const events = await contract.queryFilter(filter, fromBlock, toBlock) Just wanted to leave my 2 cents comment since I found this while googling around. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible to add feature for gettting different events at once, or all events from single contract from specific block without passing any event name, OR by passing multiple event names in
contract.queryFilter
like this:Beta Was this translation helpful? Give feedback.
All reactions